From 4acbbe656591d8f98ffb86dc2cfa74a2b1c09c9e Mon Sep 17 00:00:00 2001 From: Paul LeMarquand Date: Thu, 12 Dec 2024 09:57:39 -0500 Subject: [PATCH] Increase timeout for build tests (#1270) 30 seconds often wasn't enough to complete the build. Issue: #1269 --- test/integration-tests/commands/build.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/integration-tests/commands/build.test.ts b/test/integration-tests/commands/build.test.ts index 77c47540..fddfbb2e 100644 --- a/test/integration-tests/commands/build.test.ts +++ b/test/integration-tests/commands/build.test.ts @@ -32,7 +32,7 @@ import { suite("Build Commands", function () { // Default timeout is a bit too short, give it a little bit more time - this.timeout(30 * 1000); + this.timeout(120 * 1000); let folderContext: FolderContext; let workspaceContext: WorkspaceContext; @@ -105,7 +105,9 @@ suite("Build Commands", function () { const result = vscode.commands.executeCommand(Commands.DEBUG); expect(result).to.eventually.be.true; - await bpPromise.then(() => continueSession()); + await bpPromise; + await continueSession(); + vscode.debug.removeBreakpoints(breakpoints); }); });