From 30f9ca1c9a4da525927a1c00794448cfe42cb406 Mon Sep 17 00:00:00 2001 From: Mark Wiemer <7833360+mark-wiemer@users.noreply.github.com> Date: Thu, 17 Oct 2024 04:17:49 -0700 Subject: [PATCH] Revert "update delays to fix CI?" (#546) --- src/test/config.e2e.ts | 5 ++--- src/test/utils.ts | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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 };