Skip to content

Commit 503b6ba

Browse files
committed
update delays to fix CI?
1 parent ed962c8 commit 503b6ba

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/test/config.e2e.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ suite('exclude', () => {
8888
.appendTabstop(0)
8989
.appendText('\n'),
9090
);
91-
await sleep(100);
91+
await sleep(1_000);
9292
editor.selection = new vscode.Selection(
9393
0,
9494
0,
9595
0,
9696
snippetText.length,
9797
);
98-
await sleep(100);
98+
await sleep(1_000);
9999

100100
// Get completion items
101101
const completionItems =
@@ -104,6 +104,7 @@ suite('exclude', () => {
104104
doc.uri,
105105
editor.selection.active,
106106
);
107+
await sleep(1_000);
107108
const labels = completionItems?.items.map((i) => i.label);
108109
assert.strictEqual(labels.includes(funcName), expected);
109110
});

src/test/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ export const updateConfig = async <T>(section: string, value: T) => {
4444
await vscode.workspace
4545
.getConfiguration(configPrefix)
4646
.update(section, value, false);
47-
await sleep(1500); // todo tests are flaky even at 1_000ms
47+
await sleep(2_500); // todo tests are flaky even at 1_000ms
4848
};

0 commit comments

Comments
 (0)