Skip to content

fix: wait past the deadline before releasing the stale question in its test - #14

Merged
NenkaLab merged 1 commit into
masterfrom
fix/tooling-test-deadline
Oct 7, 2026
Merged

NenkaLab merged 1 commit into
masterfrom
fix/tooling-test-deadline

Conversation

@NenkaLab

@NenkaLab NenkaLab commented Oct 7, 2026

Copy link
Copy Markdown
Member

Summary

The PluginApi CI run for the merge of #13 failed in ToolingSessionTest > a question the host gave up on is skipped (ToolingSessionTest.kt:189: /stale.js was run).

A question carries the deadline send time + timeout. The host stops waiting at that same moment, and the test then released the busy tooling at once. The tooling could pick the question up in the same millisecond as its deadline, and Wire.expired only counts a deadline as passed once the clock is later than it, so the question ran. It needs a slower machine than the one I wrote it on to show.

The test now waits 100 ms after the host gives up, so the deadline has certainly passed. Nothing in contract changes.

Test plan

:contract:test --tests '*ToolingSessionTest*' six times in a row: 11 of 11 each time. The failure was not reproducible locally before the change either, so the evidence is the cause above and the next CI run.

@NenkaLab
NenkaLab merged commit 202896c into master Oct 7, 2026
1 check passed
@NenkaLab
NenkaLab deleted the fix/tooling-test-deadline branch October 7, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant