From c2defde5534865e834f9b4a2415bd019712d3ecd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 17:17:18 +0000 Subject: [PATCH 1/2] Initial plan From 80c8966f8c4ae2ae0a5f689da6ac98d2b280eded Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 3 Feb 2026 17:22:12 +0000 Subject: [PATCH 2/2] fix: Eliminate race condition in Time.test.ts timing assertions Co-authored-by: miccy <9729864+miccy@users.noreply.github.com> --- packages/common/test/Time.test.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/common/test/Time.test.ts b/packages/common/test/Time.test.ts index b76452041..38cf06b20 100644 --- a/packages/common/test/Time.test.ts +++ b/packages/common/test/Time.test.ts @@ -13,11 +13,13 @@ import { describe("Time", () => { describe("createTime", () => { test("now returns current time", () => { + const before = Date.now(); const time = createTime(); - const now = Date.now(); - // Allow small difference due to execution time - expect(time.now()).toBeGreaterThanOrEqual(now - 10); - expect(time.now()).toBeLessThanOrEqual(now + 10); + const after = Date.now(); + const timeNow = time.now(); + // time.now() should be between before and after with small tolerance + expect(timeNow).toBeGreaterThanOrEqual(before - 10); + expect(timeNow).toBeLessThanOrEqual(after + 10); }); test("millisToDateIso returns current time as ISO string", () => {