Mock CancellationToken slightly better
This commit is contained in:
@@ -62,7 +62,11 @@ describeWithCodeQL()("Queries", () => {
|
|||||||
safeDel(qlFile);
|
safeDel(qlFile);
|
||||||
safeDel(qlpackFile);
|
safeDel(qlpackFile);
|
||||||
|
|
||||||
token = {} as CancellationToken;
|
token = {
|
||||||
|
onCancellationRequested: (_) => {
|
||||||
|
void _;
|
||||||
|
},
|
||||||
|
} as CancellationToken;
|
||||||
|
|
||||||
// Add a database, but make sure the database manager is empty first
|
// Add a database, but make sure the database manager is empty first
|
||||||
await cleanDatabases(databaseManager);
|
await cleanDatabases(databaseManager);
|
||||||
|
|||||||
Reference in New Issue
Block a user