Skip to content

Commit 5f15514

Browse files
committed
test: close active editor to reduce number of open tabs
To reduce flakiness of the tests, we close the editor tab once the tests for a specific file have been run. This seems to reduce the flakiness of the tests and help slightly with the freezes on Windows.
1 parent c179fd7 commit 5f15514

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/suite/basic.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ suite("Extension Features", function () {
235235
result.length,
236236
"No diagnostics after change",
237237
);
238+
await vscode.commands.executeCommand(
239+
"workbench.action.closeActiveEditor",
240+
);
238241
}).timeout(SCAN_TIMEOUT);
239242
});
240243
});

0 commit comments

Comments
 (0)