From 2d19498f1f0d21e85ccef74b57c4e5c10d110766 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Fri, 3 Jan 2020 15:32:03 +0000 Subject: [PATCH] Increase timeout for query unit tests This gives the query server sufficient time to startup. --- extensions/ql-vscode/test/pure-tests/query-test.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/extensions/ql-vscode/test/pure-tests/query-test.ts b/extensions/ql-vscode/test/pure-tests/query-test.ts index 9fc67e3fa..0b0b32a1d 100644 --- a/extensions/ql-vscode/test/pure-tests/query-test.ts +++ b/extensions/ql-vscode/test/pure-tests/query-test.ts @@ -83,6 +83,10 @@ describe('using the query server', function () { } }); + // Note this does not work with arrow functions as the test case bodies: + // ensure they are all written with standard anonymous functions. + this.timeout(10000); + const codeQlPath = process.env["CODEQL_PATH"]!; let qs: qsClient.QueryServerClient; let cliServer: cli.CodeQLCliServer; @@ -95,6 +99,7 @@ describe('using the query server', function () { cliServer.dispose(); } }); + it('should be able to start the query server', async function () { const consoleProgressReporter: ProgressReporter = { report: (v: {message: string}) => console.log(`progress reporter says ${v.message}`) @@ -126,10 +131,6 @@ describe('using the query server', function () { queryServerStarted.resolve(); }); - // Note this does not work with arrow functions as the test case bodies: - // ensure they are all written with standard anonymous functions. - this.timeout(5000); - for (const queryTestCase of queryTestCases) { const queryName = path.basename(queryTestCase.queryPath); const compilationSucceeded = new Checkpoint();