Tests: replace real-clock sleeps with fake time; cover hosted-service wiring (R21-O29, O32) #205

Open
opened 2026-11-06 15:25:09 -05:00 by dohertj2 · 0 comments
Owner
  • R21-O29: real-clock sleeps with negative assertions remain (for example WorkerClientTests.cs:975, 150 ms) — latent flakes.
  • R21-O32: SessionLeaseMonitorHostedService and OrphanWorkerCleanupHostedService timer/startup wiring has no direct tests.

Source: archreview/2026-10-21/remediation/00-tracking.md row R21-O29, R21-O32 (cycle-1 TST-07, TST-18)

Next step (from the tracker): Convert sleeps to a fake time provider where one exists; add timer and startup tests with a fake time provider.

Current-state evidence: the row is still Open/Deferred in the latest (2026-10-21) tracker, and a code check on local main @ 8c0a51d (2026-11-06) found it still present unless noted below.

- R21-O29: real-clock sleeps with negative assertions remain (for example `WorkerClientTests.cs:975`, 150 ms) — latent flakes. - R21-O32: `SessionLeaseMonitorHostedService` and `OrphanWorkerCleanupHostedService` timer/startup wiring has no direct tests. Source: `archreview/2026-10-21/remediation/00-tracking.md` row R21-O29, R21-O32 (cycle-1 TST-07, TST-18) Next step (from the tracker): Convert sleeps to a fake time provider where one exists; add timer and startup tests with a fake time provider. Current-state evidence: the row is still `Open`/`Deferred` in the latest (2026-10-21) tracker, and a code check on local `main` @ `8c0a51d` (2026-11-06) found it still present unless noted below.
dohertj2 added the area:teststype:testpriority:p3migrated labels 2026-11-06 15:25:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dohertj2/mxaccessgw#205