mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-22 07:32:32 +01:00
Three fixes for the channelserver test suite: - Add net.ErrClosed check in acceptClients() so a closed listener breaks the loop immediately instead of spinning and logging warnings. This is correct production behavior too. - Remove -c flag from pg_restore that conflicted with CleanTestDB's prior DROP, causing "gook DROP CONSTRAINT" errors. Clean the schema with DROP SCHEMA CASCADE instead of per-table drops. - Use sync.Once to apply the test schema once per binary run, then TRUNCATE tables for isolation. Reduces ~60 pg_restore + 29-patch cycles to a single setup pass.