test(readiness): the report helper's clock freezes — two independently-built reports compared across a millisecond tick made the plant lane red
All checks were successful
CI / Node 22 (push) Successful in 12m14s
CI / Node 24 (push) Successful in 12m12s
CI / Bun (latest) (push) Successful in 12m23s
CI / Integration + conformance (Node 22) (push) Successful in 19m22s

This commit is contained in:
David Snelling 2026-08-25 11:04:30 -07:00
parent 553e0d97ae
commit 39b916a3c0

View file

@ -29,7 +29,11 @@ function report(overrides: Partial<HealthReport> = {}): HealthReport {
healthy: true, healthy: true,
serving: true, serving: true,
invariants: [], invariants: [],
checkedAt: Date.now(), // A FIXED stamp, never Date.now(): the pin at :98 compares two
// independently-built reports, and a live clock made them differ by 1ms
// whenever the millisecond ticked between the two calls — a plant-lane
// red that had nothing to do with the code under test.
checkedAt: 1_700_000_000_000,
durationMs: 1, durationMs: 1,
generation: 1, generation: 1,
unledgered: [], unledgered: [],