Repository navigation
Waits for the crash report by its exit - #268
Merged
Merged
Conversation
The crash report tests slept a fixed 100 ms for the report to reach the capture. They now monitor the page process and wait, bounded at one second with a named failure, for its exit; a crashing process logs its report before it exits, so the report is in the capture by then. The tests still assert the report lines were captured.
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.
What
The screen editor page's crash report tests no longer wait a fixed 100 ms for the report.
wait_for_crash_report/1monitors the page process and waits, bounded at one second, for its exit, with a failure message that names the cause. The duplicate-wait in the GenServer-based test is dropped, since that test already waits for the exit.Why this is enough
A crashing GenServer logs its crash report from its own process before it exits, so the report is in the capture once the exit is seen. The tests still assert the report lines were captured (
terminating,Last message,State:).Evidence
mix qualitygreen on the committed tree.Test-only change; no production code, no new surface.