From ee690a342da3ad9045c774381fba80db732fa8f6 Mon Sep 17 00:00:00 2001 From: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com> Date: Wed, 11 Nov 2026 06:54:29 +0000 Subject: [PATCH] test(daemon): drop the duplicate retirement replay from the resolver gate test --- .../macos-login-session-death-watch.test.ts | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/main/daemon/process-scopes/testing/macos-login-session-death-watch.test.ts b/src/main/daemon/process-scopes/testing/macos-login-session-death-watch.test.ts index 5a0b75c70cf..7726e9927dd 100644 --- a/src/main/daemon/process-scopes/testing/macos-login-session-death-watch.test.ts +++ b/src/main/daemon/process-scopes/testing/macos-login-session-death-watch.test.ts @@ -218,12 +218,10 @@ describe('MacosLoginSessionDeathWatch', () => { }) it.each(['healthy', 'unknown'] as const)( - 'runs no login probe while resolver health is %s, then retires once it degrades', - async (initialResolverHealth) => { - const { watch, clock, onRetire, probe, setResolverHealth } = createWatch({ - outcomes: [ACCEPTED, REJECTED, REJECTED, REJECTED, REJECTED] - }) - setResolverHealth(initialResolverHealth) + 'runs no login probe after arming while resolver health is %s', + async (resolverHealth) => { + const { watch, clock, probe, setResolverHealth } = createWatch() + setResolverHealth(resolverHealth) watch.start() await drainMicrotasks() for (let i = 0; i < 5; i++) { @@ -233,14 +231,6 @@ describe('MacosLoginSessionDeathWatch', () => { watch.notifyPtyExit() await clock.advance(10_000) expect(probe).toHaveBeenCalledTimes(1) - - setResolverHealth('unhealthy') - await clock.advance(115_000) // Next periodic check sees the dead resolver. - expect(probe).toHaveBeenCalledTimes(2) - await clock.advance(119_999) - expect(onRetire).not.toHaveBeenCalled() - await clock.advance(1) - expect(onRetire).toHaveBeenCalledTimes(1) } )