From c95da2a8d7c4c8520762f48a028dec20ed1eea78 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Mon, 12 Oct 2026 01:10:36 -0700 Subject: [PATCH] test(daemon): pin clock for stable-launch budget assertion (#27850) --- .../daemon/daemon-init-macos-stable-launch-fallback.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/daemon/daemon-init-macos-stable-launch-fallback.test.ts b/src/main/daemon/daemon-init-macos-stable-launch-fallback.test.ts index 2186b83972d..f909ad20fdb 100644 --- a/src/main/daemon/daemon-init-macos-stable-launch-fallback.test.ts +++ b/src/main/daemon/daemon-init-macos-stable-launch-fallback.test.ts @@ -129,6 +129,8 @@ describe('daemon-init: macOS stable-bundle launch fallback', () => { }) it('hands off to the fork early enough for its readiness wait and adapter to fit the gate', async () => { + // Compare the configured budgets without wall-clock ticks between the two reads. + vi.spyOn(Date, 'now').mockReturnValue(1_000_000) stableLaunch.failure = 'unavailable' await launchOnce() const handoffMs = (stableLaunch.deadlinesMs[0] ?? Infinity) - launcherCalledAtMs