Bumps timeouts in tests

This tests occasionally times out during setup. This change attempts to
avoid this problem by increasing the max length of the test.
This commit is contained in:
Andrew Eisenberg
2022-11-07 15:19:58 -08:00
parent 3bb10d8c6e
commit 71daf0b8c6

View File

@@ -21,7 +21,7 @@ import { QueryRunner } from '../../queryRunner';
* Integration tests for queries * Integration tests for queries
*/ */
describe('Queries', function() { describe('Queries', function() {
this.timeout(20000); this.timeout(20_000);
before(function() { before(function() {
skipIfNoCodeQL(this); skipIfNoCodeQL(this);
@@ -42,7 +42,9 @@ describe('Queries', function() {
let qlFile: string; let qlFile: string;
beforeEach(async () => { beforeEach(async function() {
this.timeout(20_000);
sandbox = sinon.createSandbox(); sandbox = sinon.createSandbox();
try { try {
@@ -89,7 +91,8 @@ describe('Queries', function() {
} }
}); });
afterEach(async () => { afterEach(async function() {
this.timeout(20_000);
try { try {
sandbox.restore(); sandbox.restore();
safeDel(qlpackFile); safeDel(qlpackFile);