WorkerClient heartbeat loop ignores the injected TimeProvider #217
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
WorkerClient.HeartbeatLoopAsyncwaits with a plainTask.Delayinstead of the injected_timeProvider, so heartbeat-check behaviour cannot be driven with a fake clock in tests (the archreview GWC-20 design included this; #192's text did not, so it was left). Switch toTask.Delay(interval, _timeProvider, ct)and add a fake-time test for stuck/grace detection.Fixed on main
b5d11e58: WorkerClient.HeartbeatLoopAsync usesTask.Delay(interval, _timeProvider, ct). New fake-clock grace-then-fault test; the within-stuck-ceiling test moved to fake time (new TestSupport/TickObservingTimeProvider). Both fail (5 s timeouts) with the fix reverted; stable over 10 repeated runs. Evidence: NonWindows.slnx 0 warnings/0 errors; MxGateway.Tests 1395 passed / 2 skipped / 0 failed (after rebase on main).