mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
Have tab test retry 3 times
This commit is contained in:
@@ -371,7 +371,12 @@ suite('vscode API - window', () => {
|
||||
});
|
||||
|
||||
//#region Tabs API tests
|
||||
test('Tabs - Ensure tabs getter is correct', async () => {
|
||||
test('Tabs - Ensure tabs getter is correct', async function () {
|
||||
// Reduce test timeout as this test should be quick, so even with 3 retries it will be under 60s.
|
||||
this.timeout(10000);
|
||||
// This test can be flaky because of opening a notebook
|
||||
// Sometimes the webview doesn't resolve especially on windows so we will retry 3 times
|
||||
this.retries(3);
|
||||
const [docA, docB, docC, notebookDoc] = await Promise.all([
|
||||
workspace.openTextDocument(await createRandomFile()),
|
||||
workspace.openTextDocument(await createRandomFile()),
|
||||
|
||||
Reference in New Issue
Block a user