Skip to content

Commit b7401a6

Browse files
authored
Merge pull request #205 from henrymercer/increase-query-unit-tests-timeout
Increase timeout for query unit tests
2 parents a2cffea + 2d19498 commit b7401a6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

extensions/ql-vscode/test/pure-tests/query-test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ describe('using the query server', function () {
8383
}
8484
});
8585

86+
// Note this does not work with arrow functions as the test case bodies:
87+
// ensure they are all written with standard anonymous functions.
88+
this.timeout(10000);
89+
8690
const codeQlPath = process.env["CODEQL_PATH"]!;
8791
let qs: qsClient.QueryServerClient;
8892
let cliServer: cli.CodeQLCliServer;
@@ -95,6 +99,7 @@ describe('using the query server', function () {
9599
cliServer.dispose();
96100
}
97101
});
102+
98103
it('should be able to start the query server', async function () {
99104
const consoleProgressReporter: ProgressReporter = {
100105
report: (v: {message: string}) => console.log(`progress reporter says ${v.message}`)
@@ -126,10 +131,6 @@ describe('using the query server', function () {
126131
queryServerStarted.resolve();
127132
});
128133

129-
// Note this does not work with arrow functions as the test case bodies:
130-
// ensure they are all written with standard anonymous functions.
131-
this.timeout(5000);
132-
133134
for (const queryTestCase of queryTestCases) {
134135
const queryName = path.basename(queryTestCase.queryPath);
135136
const compilationSucceeded = new Checkpoint<void>();

0 commit comments

Comments
 (0)