Skip to content

Commit

Permalink
Try to fix CI flakiness by adding sleep in custom regex scope test (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
AndreasArvidsson authored Aug 6, 2024
1 parent d81e00c commit ab208a3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export async function runCustomRegexScopeInfoTest() {
await assertCalledWithScopeInfo(fake, unsupported);

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

await unlink(cursorlessTalonStateJsonPath);
Expand Down

0 comments on commit ab208a3

Please sign in to comment.