Skip to content

The agent that grows with you

test(desktop): inject kill in the no-handshake failure log case

Brooklyn Nicholson9b65c30e2a91
diff --git a/apps/desktop/electron/updater/relaunch-waiter-lifecycle.test.ts b/apps/desktop/electron/updater/relaunch-waiter-lifecycle.test.ts
index 14b5d66e020..bb9d484fda5 100644
--- a/apps/desktop/electron/updater/relaunch-waiter-lifecycle.test.ts
+++ b/apps/desktop/electron/updater/relaunch-waiter-lifecycle.test.ts
@@ -260,6 +260,9 @@ test('every failed start tells the log why it failed', async (): Promise<void> =
log,
pollMs: 20,
handshakeTimeoutMs: 200,
+ kill: child => {
+ child.kill()
+ },
spawn: (_command, _args, options): ChildProcess =>
spawn(process.execPath, ['-e', 'setInterval(() => {}, 1000)'], { ...options, stdio: 'ignore' })
}