Mock CancellationToken slightly better

This commit is contained in:
Dave Bartolomeo
2023-03-28 17:24:00 -04:00
parent f247687dd9
commit a00db34999

View File

@@ -62,7 +62,11 @@ describeWithCodeQL()("Queries", () => {
safeDel(qlFile);
safeDel(qlpackFile);
token = {} as CancellationToken;
token = {
onCancellationRequested: (_) => {
void _;
},
} as CancellationToken;
// Add a database, but make sure the database manager is empty first
await cleanDatabases(databaseManager);