Repository navigation
fix: wait only for presentation while holding Markdown in the state race test - #5105
Merged
Merged
Conversation
…ace test The editor preload now waits for its Markdown parser as well as CodeMirror (#4738). Full startup readiness therefore waits for the module this race fixture deliberately holds. Use the existing presented stage and let the editor start the shared import, preserving both preload semantics and the crossed-state assertions. Closes #5088
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Markdown state race test held the module before navigation, then waited for full readiness before reaching the code that releases it. The editor's after-presentation preload participates in readiness, so the fixture deadlocked at startup instead of testing whether an older state can overwrite a newer comment.
Open only through presentation while Markdown is held, using the existing readiness stage, and let the editor's preload start the import instead of explicitly starting it again. The held older poll, newer comment response and final assertions remain in place. The shared parser preparation added in #4738 makes Markdown part of the editor preload; this preserves that behavior and the deferred editor loading introduced by #3897. No product behavior changes.
Validation: the focused test reproduces the startup timeout before the change and passes after it (4.81 seconds); Ruff and
git diff --checkpass.Closes #5088 — automated triage