Commit fa786f7
authored
fix: don't drop the live schema while the poller is still running (#107)
afterAll DROP SCHEMA raced Bus.#poll: the poll is two queries with a
release between them, and they share a pool of max: 1. DROP in that
gap made the events SELECT fail; close() → stop() then surfaced it
as a suite failure.
Stop the poller first and leave leftover schema for the next
setupDb beforeAll. Swallow in-flight poll errors once stop() has
already flipped #running.1 parent 92750fa commit fa786f7
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
316 | 322 | | |
317 | 323 | | |
318 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
0 commit comments