Repository navigation
Advance traffic deadline test past the served wait limit - #2440
Merged
Merged
Conversation
The fake clock in the deadline test still stopped at 31 seconds after the served wait bound rose to 120 seconds. Derive the expired reading from the shared timeout so the test proves that an endlessly repainted false fact ends at its declared deadline.
This was referenced Oct 11, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 12, 2026
After #2375 made Leaf's focus ring follow the logical input destination across pointer and keyboard arrivals, tests in [main CI run 38159211604](https://github.com/max-sixty/leaf/actions/runs/38159211604) still treated pointer-returned focus as absent. Sending a reaction returns focus to its target, releasing a held diff header leaves focus on that header, and a mouse drag leaves the focused resize handle in place. The tests check each focus-owned outline or path reveal while focus stands there, then verify what disappears when focus leaves. The handle case also checks that pointer input clears Chromium's native `:focus-visible` while Leaf's retained focus ring remains. Verification: `uv run pytest -q tests/test_render_gate.py::test_dragging_an_edge_preserves_user_state` (3 passed); the reaction and diff-path cases passed locally after their assertion changes. The branch also includes the served-wait deadline test alignment in #2440, which is being checked separately. --------- Co-authored-by: leaf-agent <[email protected]>
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 traffic deadline test still advances its fake clock to 31 seconds after the served wait limit rose from 30 to 120 seconds. The wait therefore correctly listens for another paint, but the test expects it to expire. Deriving the fake expiration from
SERVED_TIMEOUT_MSrestores the test's intended check and keeps it valid if that limit changes again.This failure occurred in PR #2435's test job and reproduces on current main.
uv run pytest -q tests/test_chrome_contracts.py::test_a_traffic_wait_stops_when_repaints_outlive_its_deadlinefailed before the change and passes after it.