diff --git a/src/test/config.e2e.ts b/src/test/config.e2e.ts index 01f20500..f52b386d 100644 --- a/src/test/config.e2e.ts +++ b/src/test/config.e2e.ts @@ -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]) => { @@ -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][] = diff --git a/src/test/utils.ts b/src/test/utils.ts index 90629998..60cd54b3 100644 --- a/src/test/utils.ts +++ b/src/test/utils.ts @@ -47,7 +47,7 @@ export const updateConfig = async ( 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 }; /**