Skip to content

Commit

Permalink
Fix: Increase timeout for removing build folders in integration tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
deribaucourt committed Dec 12, 2023
1 parent 90a8fb9 commit 29f5e2d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration-tests/src/tests/bitbake-commands.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
1 change: 1 addition & 0 deletions integration-tests/src/tests/bitbake-parse.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
})

Expand Down
1 change: 1 addition & 0 deletions integration-tests/src/tests/command-wrapper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 29f5e2d

Please sign in to comment.