Skip to content

Commit 00e529f

Browse files
authored
fix flaky test (#25583)
fix flaky smoke test by setting the setting for useEnvExt to false. Fixes test runs like this: https://github.com/microsoft/vscode-python/actions/runs/19273356638/job/55107677667
1 parent 455a130 commit 00e529f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/smoke/runInTerminal.smoke.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ suite('Smoke Test: Run Python File In Terminal', () => {
1717
return this.skip();
1818
}
1919
await initialize();
20+
// Ensure the environments extension is not used for this test
21+
await vscode.workspace
22+
.getConfiguration('python')
23+
.update('useEnvironmentsExtension', false, vscode.ConfigurationTarget.Global);
2024
return undefined;
2125
});
26+
2227
setup(initializeTest);
2328
suiteTeardown(closeActiveWindows);
2429
teardown(closeActiveWindows);

0 commit comments

Comments
 (0)