Repository navigation
Wait for the comment send before reading its event ID - #3787
Merged
Merged
Conversation
The browser draws the user’s comment note before /api/event is admitted. The test could see that optimistic note, read the previous comment as the last stored event, and resolve the wrong thread. Wait for this gesture’s send and round trip before reading the log. The test failed on main CI and passes in 18 focused copies after the change.
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 main CI run timed out waiting for a comment note to disappear after the test resolved its thread. Leaf draws the user's comment note immediately, before the
/api/eventsend is admitted. The test could observe that note, then read the previous comment as the last stored event ID and resolve the wrong thread. This change waits for that gesture's send and round trip before reading its event ID; it preserves the immediate note behavior being tested.The failing test passes on this branch, including 18 repeated focused copies. The run's separate drawing style-read failure is addressed by #3786.