Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: assert killWithEscalation timers are unref'd (#7016)

[._.]/ Adam Eivy4061b19ef9eb
diff --git a/server/lib/killWithEscalation.test.js b/server/lib/killWithEscalation.test.js
index cfdc04ff76..88b1663444 100644
--- a/server/lib/killWithEscalation.test.js
+++ b/server/lib/killWithEscalation.test.js
@@ -102,5 +102,6 @@ describe('killWithEscalation', () => {
const timer = killWithEscalation(proc, { label: 'test job', stillRunning: () => true });
// Node timers expose unref(); assert we returned a timer handle.
expect(timer).toBeDefined();
+ expect(timer.hasRef?.()).toBe(false);
});
});