Repository navigation
Commit 3810acc
committed
fix(tests): handle the cancelled token-sealing run's rejection before polling for its backend
The operator-cancel test started migrate() and only attached a handler after
its pg_cancel_backend polling loop. When the cancellation reached the run's
connection before the loop broke, Node saw an unhandled rejection and Vitest
failed the whole db shard even though every test passed. Attach the rejection
assertion when the run starts and await it after the loop.1 parent 7c829c1 commit 3810acc
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
| 362 | + | |
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| |||
368 | 369 | | |
369 | 370 | | |
370 | 371 | | |
371 | | - | |
| 372 | + | |
372 | 373 | | |
373 | 374 | | |
374 | 375 | | |
| |||
0 commit comments