Make pin lifetime tests deterministic on busy CI runners #329
- MA
The pin lifetime tests slept for 15 ms and assumed a 30 ms timer had not expired. A busy CI runner can resume late and fail these tests even when pin behavior is correct.
Use a synchronous clock in these two tests. Verify a renewed pin survives the original deadline and expires exactly at its new deadline; restore timer mocks after each test. Production code is unchanged.
Validation: 20 repeated test-file runs, all 458 editor tests, editor type checks, and repository formatting pass. Removing cancellation or expiry makes the tests fail as expected.

MaggieAppletonhead-ref-force-pushed d7dfd8c2cf1dlast month on GitHub
MaggieAppletonmerged 02318fbb5738last month on GitHub
MaggieAppletonhead-ref-deletedlast month on GitHub