refresh-rotate-test
tests: end the rotation test's passes from the read, not a timer
TestRefreshAllRotatesPastWhereTheLastOneStopped gave each refreshAll a 200 ms budget and relied on the first host's read being reached inside it. The budget starts before the registry List, so on a loaded hosted runner a slow List spent it before any host was read and the pass skipped all three ("pass 1 skipped 3, want 2", also seen at pass 3). A 250 ms sleep after List reproduces it every time.
The store double now ends the pass by cancelling the caller's context when it is first read, and the budget is a minute, so the pass stops exactly after one host whatever the runner's speed. The deadline path itself stays covered by the nanosecond-budget test. Removing the resume bookkeeping still fails the test. Test-only.
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- paul@keymail.dev pushed 6e97f72d4 Merge remote-tracking branch 'origin/main' into refresh-rotate-test
- paul@keymail.dev pushed 4ebaae460 Merge remote-tracking branch 'origin/main' into refresh-rotate-test
- paul@keymail.dev pushed 775c6447c Merge remote-tracking branch 'origin/main' into refresh-rotate-test
- paul@keymail.dev pushed a9b6f5f91 tests: end the rotation test's passes from the read, not a timer