Skip to content

Commit 1bbffe4

Browse files
committed
test(rivetkit): avoid polling sleep actor awake
1 parent efe8a6e commit 1bbffe4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

rivetkit-typescript/packages/rivetkit/tests/driver/actor-sleep-db.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,10 @@ describeDriverMatrix("Actor Sleep Db", (driverTestConfig) => {
206206
expect(counts.startCount).toBe(2);
207207
},
208208
{
209-
timeout: 5_000,
210-
interval: 50,
209+
timeout: 10_000,
210+
// Each poll is an actor action, so a tight interval can keep the
211+
// actor awake and prevent the idle sleep this assertion observes.
212+
interval: SLEEP_DB_TIMEOUT + 250,
211213
},
212214
);
213215

0 commit comments

Comments
 (0)