Skip to content

Commit 74fdf6d

Browse files
d-csclaude
andcommitted
test(webapp): bump mollifierStaleSweep redisTest timeouts to 20s
Container startup + the sweep loop can exceed Vitest's 5s default on CI runners (passes in ~1.7-2s locally). Matches the explicit \`{ timeout: 20_000 }\` other mollifier redisTests carry across the project. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f35c22a commit 74fdf6d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/webapp/test/mollifierStaleSweep.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ describe("runStaleSweepOnce — unit", () => {
7474
describe("runStaleSweepOnce — testcontainers", () => {
7575
redisTest(
7676
"flags every entry whose dwell exceeds the stale threshold",
77+
{ timeout: 20_000 },
7778
async ({ redisOptions }) => {
7879
const buffer = new MollifierBuffer({ redisOptions });
7980
try {
@@ -144,6 +145,7 @@ describe("runStaleSweepOnce — testcontainers", () => {
144145

145146
redisTest(
146147
"snapshot reports zero for envs that have entries but none stale (clears latched alerts)",
148+
{ timeout: 20_000 },
147149
async ({ redisOptions }) => {
148150
// Critical for alert behaviour: a previous sweep reported env_a
149151
// stale, alert fired, drainer caught up. The next sweep must
@@ -172,6 +174,7 @@ describe("runStaleSweepOnce — testcontainers", () => {
172174

173175
redisTest(
174176
"leaves fresh entries alone (dwell below threshold)",
177+
{ timeout: 20_000 },
175178
async ({ redisOptions }) => {
176179
// Regression guard for the inequality direction. A bug that flipped
177180
// `dwellMs > threshold` to `dwellMs >= threshold` would flag every
@@ -201,6 +204,7 @@ describe("runStaleSweepOnce — testcontainers", () => {
201204

202205
redisTest(
203206
"scans across multiple orgs",
207+
{ timeout: 20_000 },
204208
async ({ redisOptions }) => {
205209
// Phase-3 design has org-level fairness in the drainer; the sweep
206210
// must walk every org/env, not just the first one it finds. If a

0 commit comments

Comments
 (0)