Commit 5f33f65
test: fix flaky requestHandlerTimeoutSecs test (#3340)
## Summary
- Fix flaky test `should respect the requestHandlerTimeoutSecs option`
in `browser_crawler.test.ts`
- Use Vitest fake timers with `shouldAdvanceTime: true` to prevent timer
leakage
- The 1500ms "bad" timer was remaining in the event loop and firing
during other concurrent tests
## Test plan
- [x] Verified the test passes consistently (ran 5 times in a row)
- [x] The fix uses the same fake timer pattern as other tests in the
codebase
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 9d01334 commit 5f33f65
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| 430 | + | |
430 | 431 | | |
431 | 432 | | |
432 | 433 | | |
| |||
452 | 453 | | |
453 | 454 | | |
454 | 455 | | |
| 456 | + | |
455 | 457 | | |
456 | 458 | | |
457 | 459 | | |
| |||
0 commit comments