carlos / platform Public

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.

Commits 4
Discussions 0 0 open
Tasks 0/0 done

Discussions

  • No discussions on this branch yet.

Tasks

  • No tasks yet.

Activity