From 145a60e36bfb715e02c7c63a8b2bb68db3ee80d4 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 24 Nov 2026 18:25:00 -0600 Subject: [PATCH] Give the settle poll the suite's 5s timeout The settled state needs a second coordinator pass behind the 1s minimum pass interval, so the default 1s poll could time out on a loaded shard. Co-Authored-By: Claude Opus 5.5 --- .../chat-channels/github-webhook-recovery.integration.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/__tests__/chat-channels/github-webhook-recovery.integration.test.ts b/server/src/__tests__/chat-channels/github-webhook-recovery.integration.test.ts index 7ae6aa0a962..aece6581b5e 100644 --- a/server/src/__tests__/chat-channels/github-webhook-recovery.integration.test.ts +++ b/server/src/__tests__/chat-channels/github-webhook-recovery.integration.test.ts @@ -493,8 +493,8 @@ describeEmbeddedPostgres("chat channels: github webhook recovery", () => { try { vi.useFakeTimers({ toFake: ["Date", "setTimeout", "clearTimeout"], shouldAdvanceTime: true }); await f.service.registerGitHubWebhookRecoveryWork(coordinator, () => true).ready; - await expect.poll(() => ({ active: idleWorkSnapshot().active, nextWakeAt: coordinator.nextWakeAt() })) - .toEqual({ active: 0, nextWakeAt: dueAt }); + await expect.poll(() => ({ active: idleWorkSnapshot().active, nextWakeAt: coordinator.nextWakeAt() }), + { timeout: 5000 }).toEqual({ active: 0, nextWakeAt: dueAt }); const reads = vi.spyOn(db, "select"); try { await vi.advanceTimersByTimeAsync(15_000); expect(reads).not.toHaveBeenCalled(); } finally { reads.mockRestore(); }