Commit a18c48e
committed
Address review feedback
fix: increase handler delay so wip event fires in workId correlation test
The wip event is rate-limited to once per 2s and only fires when
onFetch processes jobs. With delay(50) the job completes before 2s
elapses from manager creation, so emitWip never fires and the test
times out. Increase to delay(3000) so the end-of-onFetch emitWip
call happens after the 2s threshold.
Also resolve handlerCompleted before the delay so it doesn't
block the wip assertions.1 parent 4f49837 commit a18c48e
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
336 | 339 | | |
337 | 340 | | |
338 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
339 | 345 | | |
340 | 346 | | |
341 | 347 | | |
342 | 348 | | |
343 | 349 | | |
| 350 | + | |
| 351 | + | |
344 | 352 | | |
345 | 353 | | |
346 | 354 | | |
| |||
0 commit comments