test(readiness): the report helper's clock freezes — two independently-built reports compared across a millisecond tick made the plant lane red
This commit is contained in:
parent
553e0d97ae
commit
39b916a3c0
1 changed files with 5 additions and 1 deletions
|
|
@ -29,7 +29,11 @@ function report(overrides: Partial<HealthReport> = {}): HealthReport {
|
|||
healthy: true,
|
||||
serving: true,
|
||||
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,
|
||||
generation: 1,
|
||||
unledgered: [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue