Skip to content

fix: don't drop the live schema while the poller is still running - #107

Merged
ryanrasti merged 1 commit into
mainfrom
fix/live-teardown-events-table
Aug 15, 2026
Merged

fix: don't drop the live schema while the poller is still running#107
ryanrasti merged 1 commit into
mainfrom
fix/live-teardown-events-table

Conversation

@ryanrasti

Copy link
Copy Markdown
Owner

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.

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.
@ryanrasti
ryanrasti force-pushed the fix/live-teardown-events-table branch from 6f7ef7d to 68ecc4e Compare August 15, 2026 21:56
@ryanrasti
ryanrasti merged commit fa786f7 into main Aug 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant