Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit 9e0854b

Browse files
committed
Wait at least 500ms between UI-related commands on CI
It ain't pretty but it works.
1 parent fb46374 commit 9e0854b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/suite/extension.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,5 @@ const delay = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
120120
* user-like inputs. To avoid any races (which unfortunately *did* happen), it's
121121
* best if we interweave the delays between each UI action.
122122
*/
123-
const waitForUI = () => delay(0);
123+
// FIXME: ... or just use 500ms? For some reason our CI just can't ever catch up
124+
const waitForUI = () => delay(process.env.CI === 'true' ? 500 : 0);

0 commit comments

Comments
 (0)