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:
Devin Foley committed 2026-04-08 17:01:44 -07:00
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");