Skip to content

Commit ab208a3

Browse files
Try to fix CI flakiness by adding sleep in custom regex scope test (#2645)
Possible solution to #2538 As of this writing this seems to be required for mac CI, but not other platforms ## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet
1 parent d81e00c commit ab208a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/cursorless-vscode-e2e/src/suite/scopeProvider/runCustomRegexScopeInfoTest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ export async function runCustomRegexScopeInfoTest() {
3333
await assertCalledWithScopeInfo(fake, unsupported);
3434

3535
await openNewEditor(contents);
36+
// The scope provider relies on the open document event (among others) to
37+
// update available scopes. Add a short sleep here to give it time to
38+
// trigger.
39+
await sleep(100);
3640
await assertCalledWithScopeInfo(fake, present);
3741

3842
await unlink(cursorlessTalonStateJsonPath);

0 commit comments

Comments
 (0)