From 29f5e2d81a744db90e2adacaa284a34aeb378cba Mon Sep 17 00:00:00 2001 From: Enguerrand de Ribaucourt Date: Fri, 8 Dec 2023 17:17:15 +0100 Subject: [PATCH] Fix: Increase timeout for removing build folders in integration tests The default timeout of 2s might not be enough to delete the build directories with bitabke parsing caches. I used a longer one for the commandWrapper tests because it updates the configurations which has to wait for three promises. --- integration-tests/src/tests/bitbake-commands.test.ts | 2 ++ integration-tests/src/tests/bitbake-parse.test.ts | 1 + integration-tests/src/tests/command-wrapper.test.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/integration-tests/src/tests/bitbake-commands.test.ts b/integration-tests/src/tests/bitbake-commands.test.ts index 8334c3f0..e6139d5b 100644 --- a/integration-tests/src/tests/bitbake-commands.test.ts +++ b/integration-tests/src/tests/bitbake-commands.test.ts @@ -26,6 +26,8 @@ suite('Bitbake Commands Test Suite', () => { }) suiteTeardown(async function (this: Mocha.Context) { + this.timeout(10000) + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const workspaceURI: vscode.Uri = vscode.workspace.workspaceFolders![0].uri const buildFolder = vscode.Uri.joinPath(workspaceURI, 'build') diff --git a/integration-tests/src/tests/bitbake-parse.test.ts b/integration-tests/src/tests/bitbake-parse.test.ts index dfc63c35..72e5205c 100644 --- a/integration-tests/src/tests/bitbake-parse.test.ts +++ b/integration-tests/src/tests/bitbake-parse.test.ts @@ -47,6 +47,7 @@ suite('Bitbake Commands Test Suite', () => { }) suiteTeardown(async function (this: Mocha.Context) { + this.timeout(10000) await vscode.workspace.fs.delete(buildFolder, { recursive: true }) }) diff --git a/integration-tests/src/tests/command-wrapper.test.ts b/integration-tests/src/tests/command-wrapper.test.ts index 878098ca..f0c3097f 100644 --- a/integration-tests/src/tests/command-wrapper.test.ts +++ b/integration-tests/src/tests/command-wrapper.test.ts @@ -45,6 +45,7 @@ suite('Bitbake Command Wrapper', () => { }) suiteTeardown(async function (this: Mocha.Context) { + this.timeout(300000) await vscode.workspace.fs.delete(buildFolder, { recursive: true }) const bitbakeConfiguration = vscode.workspace.getConfiguration('bitbake')