diff options
author | Igor Zinkovsky <igor@deno.com> | 2023-11-10 02:28:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-10 11:28:38 +0100 |
commit | f4305433dc2a731782fd5f03cd2e0c192606aeb7 (patch) | |
tree | da49aa092c527537bf1f524cc921fc0cf1bd12f2 /cli/js/40_jupyter.js | |
parent | 612b7dfcc76278f7823b2ea09540922955ac8bf5 (diff) |
fix(test) reduce queue persistence test time from 60 secs to 6 secs (#21142)
This PR reduces the time to run `queue persistence with inflight
messages` test from 60 seconds down to about 6 seconds.
The test simulates a crash to ensure that inflight messages are cleaned
up and re-queued when the new process starts. Since messages are
considered dead after 5 seconds of being queued, reopening the db within
5 seconds does not re-queue the messages on startup (they do get
re-queued after 60 seconds, which is the cleanup frequency). By waiting
for 5 seconds before reopening the db, the test ensures that the cleanup
happens quickly when the db is opened.
Diffstat (limited to 'cli/js/40_jupyter.js')
0 files changed, 0 insertions, 0 deletions