Skip to content

Commit 1901967

Browse files
authored
Mitigate VS Code language service integration tests flakiness (microsoft#2204)
VS Code integration tests started failing intermittently on Windows. Other platforms have been passing fine. In my local runs, I can see the tests failing about 1/4 times. This seems to be due to an existing, known, timing issue in the tests. Somehow some recent change made this delay worse, but I can't track down what exactly. Increasing this delay from 50ms to 100ms made the tests pass on my local machine 20 times in a row... which I consider improvement enough. Sad.
1 parent a6b04b1 commit 1901967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vscode/test/suites/language-service/language-service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ suite("Q# Language Service Tests", function suite() {
5353
await vscode.workspace.openTextDocument(hasBadDepMainQs);
5454

5555
// Give the language service a tiny bit of time to settle
56-
await new Promise((resolve) => setTimeout(resolve, 50));
56+
await new Promise((resolve) => setTimeout(resolve, 100));
5757

5858
// Bring up Problems view for when we want to visually inspect what's going on
5959
vscode.commands.executeCommand("workbench.action.problems.focus");

0 commit comments

Comments
 (0)