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 <noreply@anthropic.com>
This commit is contained in:
DottaandClaude Opus 5.5 committed 2026-11-24 18:25:00 -06:00
1 parent 33cf9a0799
commit 145a60e36b
1 file changed
+2 -2
@@ -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(); }