Files
vectorcraft/crates
dotCooCoo fec0e5ab75 Tests: the screenshot trial steps the app's clock instead of the wall clock
tests::automation::a_screenshot_is_issued_by_the_apps_frames_and_written
failed on a loaded machine with "screenshot 0 timed out: no frame was
presented within 8 s": the capture's settle delay and its 8 s deadline
started on the wall clock inside ControlChannel::settle, so a slow run
reached the deadline before a frame issued the capture.

The app now times control requests and captures on its own clock,
VectorcraftApp::instant: the monotonic clock, or now_override seconds
after the app was made when a test sets it. run_control admits each
screenshot with ControlChannel::settle_at at that instant, and the
drain, the request-expiry check and issue_captures read the same
clock. Behavior outside tests is unchanged.

The test starts the app's clock twice the deadline past the wall clock
and steps it one frame per pass, so the capture is issued after its
settle delay on that clock. With the admission or issue still on the
wall clock, the test fails with the timeout error above.
2026-11-27 16:45:53 -08:00
..
…
…