Skip to content

Commit cf26aa7

Browse files
committed
Add more delays to CMake Tools test
1 parent 2d604f4 commit cf26aa7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.vscode-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function getProjectTestConfigs(name, boards, cmakeToolsOptions, compileTimeout=3
4242
],
4343
mocha: {
4444
ui: 'tdd',
45-
timeout: compileTimeout,
45+
timeout: compileTimeout + 10000, // 10s of wait time
4646
},
4747
});
4848
}

test/projectCompilation/projectCompilation.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ suite(`${testName} Project Test Suite`, () => {
3535

3636
test(`${testName} Compile Project ${type}`, async () => {
3737
if (type === "cmakeTools") {
38+
// Wait for a bit
39+
await new Promise(resolve => setTimeout(resolve, 5000));
3840
// Kit selection may not have run yet
3941
await vscode.commands.executeCommand("cmake.setKitByName", "Pico");
40-
// Check configure is done
41-
await vscode.commands.executeCommand("cmake.configure"); // takes folder then name, but folder can be empty string
42-
// Delay to ensure configure is done
42+
// Wait for a bit more
4343
await new Promise(resolve => setTimeout(resolve, 5000));
4444
// Select launch target
4545
await vscode.commands.executeCommand("cmake.selectLaunchTarget", "", testName); // takes folder then name, but folder can be empty string

0 commit comments

Comments
 (0)