mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
Stabilize heartbeat comment batching assertion
This commit is contained in:
parent
25d308186d
commit
a0333f3e9d
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue