Commit e37e9bb
committed
fix(test): scale lock maxDelayMs ceiling with Windows tolerance
The 'should respect maxDelayMs' assertion capped elapsed at a fixed 500ms, but
Windows timer overhead pushed a correctly-capped retry to ~824ms. Scale the
ceiling with tolerantTimeout (2500ms on Windows) — still far below the ~3s an
uncapped baseDelayMs 1000 x 3 would take, so it proves the cap held without
flaking on the slow runner.1 parent 8db7fd3 commit e37e9bb
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
242 | 244 | | |
243 | 245 | | |
244 | 246 | | |
245 | | - | |
246 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
247 | 252 | | |
248 | 253 | | |
249 | 254 | | |
| |||
0 commit comments