Skip to content

Conversation

@dmarcotte
Copy link
Contributor

Though we await executeCommand in these tests before checking the document for the command's changes, the document itself could be stale and we ran into a failure where we lost this race. Fix this by re-fetching the document from the workspace every time rather than caching a direct reference to it.

Though we await `executeCommand` in these tests before checking the
document for the command's changes, the document itself could be stale
and we ran into a failure where we lost this race. Fix this by
re-fetching the document from the workspace every time rather than
caching a direct reference to it.
Errand auto-generated lock file changes
@dmarcotte dmarcotte marked this pull request as ready for review November 17, 2025 19:08
@dmarcotte dmarcotte merged commit c071efc into kson-org:main Nov 17, 2025
1 check passed
@dmarcotte dmarcotte deleted the formatter-test-race branch November 17, 2025 21:24
@aochagavia
Copy link
Collaborator

What this the cause of those spurious errors in CI? If so, I'm glad it's solved!

holodorum pushed a commit that referenced this pull request Nov 18, 2025
Fix race condition in formatting-settings.test.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants