test(heartbeat): track nonassignee wake settlement

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-11-03 14:20:22 -06:00
1 parent c5c14c9be6
commit 4d2a065778
1 file changed
+1 -1
@@ -264,7 +264,7 @@ describeEmbeddedPostgres("heartbeat stale queued-run invalidation", () => {
await heartbeat.resumeQueuedRuns();
const [delivered] = await db.select().from(agentWakeupRequests).where(eq(agentWakeupRequests.id, wake.id));
expect(delivered.runId).toBeTruthy();
await heartbeat.waitForRunExecutionDrain(delivered.runId!);
await heartbeat.drainActiveRunExecutions();
expect(countExecuteCallsForRun(delivered.runId!)).toBe(1);
expect((await heartbeat.getRun(delivered.runId!))?.contextSnapshot).toMatchObject({ wakeCommentIds: [comment.id] });
await heartbeat.resumeQueuedRuns();