Skip to content

Commit

Permalink
Wait 2.5 seconds for exclude tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-wiemer committed Oct 19, 2024
1 parent 858486f commit fdafa76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/test/config.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ suite('exclude', () => {
ConfigKey.generalV2,
{ librarySuggestions: LibIncludeType.All },
);
await sleep(1_000); // todo only these tests are extra flaky
});

tests.forEach(([name, version, exclude, expected]) => {
Expand All @@ -106,7 +107,7 @@ suite('v2.general.librarySuggestions', () => {
const filePath = resolve(rootPath, './e2e/main.ahk2');
const doc = await getDocument(filePath);
editor = await showDocument(doc);
await sleep(1000);
await sleep(1_000);
});

const tests: [name: string, libType: LibIncludeType, expected: boolean][] =
Expand Down
2 changes: 1 addition & 1 deletion src/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const updateConfig = async <T>(
await vscode.workspace
.getConfiguration(configPrefix)
.update(section, value, false);
await sleep(2_000); // todo tests are flaky even at 1_500ms
await sleep(1_500); // todo tests are flaky even at 1_000ms
};

/**
Expand Down

0 comments on commit fdafa76

Please sign in to comment.