mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-05 06:03:51 +01:00
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:
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(); }
|
||||
|
||||
Reference in new issue
Block a user