mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-28 12:04:41 +01:00
Stabilize heartbeat comment batching assertion
This commit is contained in:
1 parent
25d308186d
commit
a0333f3e9d
1 file changed
+6
-1
@@ -495,7 +495,12 @@ describe("heartbeat comment wake batching", () => {
|
||||
.from(heartbeatRuns)
|
||||
.where(eq(heartbeatRuns.agentId, agentId))
|
||||
.orderBy(asc(heartbeatRuns.createdAt));
|
||||
return runs.length === 2 && runs.every((run) => run.status === "succeeded");
|
||||
return (
|
||||
runs.length === 2 &&
|
||||
runs.every((run) => run.status === "succeeded") &&
|
||||
runs[0]?.issueCommentStatus === "retry_queued" &&
|
||||
runs[1]?.issueCommentStatus === "retry_exhausted"
|
||||
);
|
||||
});
|
||||
|
||||
const runs = await db
|
||||
|
||||
Reference in new issue
Block a user