test: specify assigned wake reason in held-read fixture

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-31 11:18:41 -05:00
1 parent f9bf5ab36d
commit 21795e222a
1 file changed
+1 -1
@@ -383,7 +383,7 @@ describeEmbeddedPostgres("heartbeat stale queued-run invalidation", () => {
it("joins a claimed execution whose initial run read has not reached live registration", async () => {
const { companyId, agentId } = await seedCompanyAndAgent();
const [issue] = await db.insert(issues).values({ companyId, title: "Held preparation", status: "todo", assigneeAgentId: agentId }).returning();
const queued = await seedQueuedRun({ companyId, agentId, issueId: issue.id });
const queued = await seedQueuedRun({ companyId, agentId, issueId: issue.id, wakeReason: "issue_assigned" });
const entered = Promise.withResolvers<void>(), release = Promise.withResolvers<void>();
const factory = runState.createHeartbeatRunState;
let held = false;