Stabilize liveness recovery assertion

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-04-19 21:13:15 -05:00
1 parent 20a673165c
commit 03287a970b
1 file changed
+1 -1
@@ -794,7 +794,7 @@ describeEmbeddedPostgres("heartbeat orphaned process recovery", () => {
const retryRun = await waitForValue(async () => {
const rows = await db.select().from(heartbeatRuns).where(eq(heartbeatRuns.agentId, agentId));
return rows.find((row) => row.id !== runId && row.status !== "queued" && row.status !== "running") ?? null;
return rows.find((row) => row.id !== runId && row.livenessState === "advanced") ?? null;
});
expect(retryRun?.livenessState).toBe("advanced");