Skip to content

Commit

Permalink
Fix argvar test for older workbenches
Browse files Browse the repository at this point in the history
  • Loading branch information
HampusAdolfsson committed Mar 11, 2024
1 parent 00dd76c commit ea3ba45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/vscodeTests/customargvars.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ suite("Test .custom_argvars project support", () => {
test("Can build project with .custom_argvars", async function() {
this.timeout(40000);
await VscodeTestsUtils.activateWorkspace("ArgVars1");
// On older workbenches, source configuration can interfere with builds,
// so wait for source configuration to finish (this should be fixed in
// the extension, ideally).
await new Promise((res) => setTimeout(res, 500));
await CpptoolsIntellisenseService.instance?.forceUpdate();
await VscodeTestsUtils.runTaskForProject("Build Project", "ArgVars", "Debug");
const exeFile = Path.join(sandBoxDir, "ArgVars/Debug/Exe/ArgVars.out");
Assert(await FsUtils.exists(exeFile), `Expected ${exeFile} to exist`);
Expand Down

0 comments on commit ea3ba45

Please sign in to comment.