From 39b916a3c0c011fe8a4968947c35df86b503f2f0 Mon Sep 17 00:00:00 2001 From: David Snelling Date: Tue, 25 Aug 2026 11:04:30 -0700 Subject: [PATCH] =?UTF-8?q?test(readiness):=20the=20report=20helper's=20cl?= =?UTF-8?q?ock=20freezes=20=E2=80=94=20two=20independently-built=20reports?= =?UTF-8?q?=20compared=20across=20a=20millisecond=20tick=20made=20the=20pl?= =?UTF-8?q?ant=20lane=20red?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/utils/indexReadiness.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/utils/indexReadiness.test.ts b/tests/unit/utils/indexReadiness.test.ts index e00d1ff0..75504c71 100644 --- a/tests/unit/utils/indexReadiness.test.ts +++ b/tests/unit/utils/indexReadiness.test.ts @@ -29,7 +29,11 @@ function report(overrides: Partial = {}): 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: [],