mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 13:24:55 +01:00
fix: increase waitFor timeout in heartbeat batching test
The test was flaky due to a tight default timeout when waiting for agent payloads.
This commit is contained in:
1 parent
dd8117914e
commit
45b8198ba2
1 file changed
+1
-1
@@ -402,7 +402,7 @@ describe("heartbeat comment wake batching", () => {
|
||||
|
||||
gateway.releaseFirstWait();
|
||||
|
||||
await waitFor(() => gateway.getAgentPayloads().length === 2);
|
||||
await waitFor(() => gateway.getAgentPayloads().length === 2, 30_000);
|
||||
await waitFor(async () => {
|
||||
const runs = await db.select().from(heartbeatRuns).where(eq(heartbeatRuns.agentId, agentId));
|
||||
return runs.length === 2 && runs.every((run) => run.status === "succeeded");
|
||||
|
||||
Reference in new issue
Block a user