Skip to content

Commit

Permalink
Revert "update delays to fix CI?" (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-wiemer authored Oct 17, 2024
1 parent dd40e6f commit 30f9ca1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/test/config.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand All @@ -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);
});
Expand Down
2 changes: 1 addition & 1 deletion src/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ export const updateConfig = async <T>(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
};

0 comments on commit 30f9ca1

Please sign in to comment.