Repository navigation
test: cover a killed resume and take screenshots off the main thread - #109
Merged
Merged
Conversation
Restart tests set process variables because resume ran before the homes map was filled. A test-only open_with runs a setup step before resume, so the four restart tests read the homes map instead. Adds a Start hold, and a test that a killed resume pass brings back a thread that exited cleanly.
A kg ui screenshot ran screencapture inside update_window, which blocks the window's thread. The window id is read on the window's thread; the capture runs on the background executor.
The data folder lookup and the socket lookup each had their own rule for an empty value. Both now use one non_empty helper.
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.
Three loose ends from the untangle (#108).
Workspace::open_withruns setup before resume, so a killed resume pass is now tested (a_killed_resume_pass_brings_back_a_thread_that_exited_cleanly, shown to fail without the keep block). The four restart tests use the homes map instead of process-wide env vars, and a resume-order flake (equalcreated_atunder the test clock) is fixed.kg ui screenshotreads the window id on the window's thread and runs the capture on the background executor, on macOS and Windows.kg.Skipped: "sidebar rows built twice per frame" was wrong; the second build runs only on keyboard navigation, not in render.
Checked: fmt, clippy, 1780 tests, all repo checks, macOS smoke. Windows capture compiles only in CI.