Skip to content

The open-source app everyone uses to manage agents at work

test: isolate native controller takeover fixture (#13212)

lorenzozane2fc5e3e43bf5
diff --git a/server/src/services/native-runtime/native-restart-recovery.test.ts b/server/src/services/native-runtime/native-restart-recovery.test.ts
index 88cc0d1709..542d058557 100644
--- a/server/src/services/native-runtime/native-restart-recovery.test.ts
+++ b/server/src/services/native-runtime/native-restart-recovery.test.ts
@@ -207,6 +207,7 @@ describe("native controller takeover fencing", () => {
}),
now,
isProcessAlive,
+ readProcessStartedAt: async () => recordedStart,
}),
).resolves.toEqual({ allowed: false, reason: "controller_still_alive" });
expect(isProcessAlive).toHaveBeenCalledWith(123);