test: ignore the disconnect when a test database is dropped #158
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-payment!158
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "test/ignore-drop-disconnect"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
What
The Postgres test runs can fail after every test has passed, with one unhandled
57P01(admin_shutdown) error.freshDb().drop()callspool.end(), which returns before the client sockets close.DROP DATABASE ... WITH (FORCE)then terminates a backend that is still closing. The client gets the FATAL message with no active query and emitserror, which nothing handles.The test pool now gives each client an
errorlistener. Query errors still reject as before.Tests
pnpm lint,pnpm typecheckandpnpm testwith Postgres pass (442 tests).