Increase timeout for query unit tests

This gives the query server sufficient time to startup.
This commit is contained in:
Henry Mercer 2020-01-03 15:32:03 +00:00
Родитель a2cffea5b0
Коммит 2d19498f1f
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -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<void>();