diff --git a/src/test/config.e2e.ts b/src/test/config.e2e.ts index 35950e14..01c31162 100644 --- a/src/test/config.e2e.ts +++ b/src/test/config.e2e.ts @@ -88,14 +88,14 @@ suite('exclude', () => { .appendTabstop(0) .appendText('\n'), ); - await sleep(1_000); + await sleep(100); editor.selection = new vscode.Selection( 0, 0, 0, snippetText.length, ); - await sleep(1_000); + await sleep(100); // Get completion items const completionItems = @@ -104,7 +104,6 @@ suite('exclude', () => { doc.uri, editor.selection.active, ); - await sleep(1_000); const labels = completionItems?.items.map((i) => i.label); assert.strictEqual(labels.includes(funcName), expected); }); diff --git a/src/test/utils.ts b/src/test/utils.ts index 850a7480..6c21effe 100644 --- a/src/test/utils.ts +++ b/src/test/utils.ts @@ -44,5 +44,5 @@ export const updateConfig = async (section: string, value: T) => { await vscode.workspace .getConfiguration(configPrefix) .update(section, value, false); - await sleep(2_500); // todo tests are flaky even at 1_000ms + await sleep(1500); // todo tests are flaky even at 1_000ms };