Houmgaor
339487c3d8
fix(channelserver): eliminate test log spam, schema errors, and slow setup
...
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.
2026-02-20 23:40:15 +01:00
..
2026-02-20 19:11:41 +01:00
2026-02-20 21:22:01 +01:00
2026-02-19 18:13:34 +01:00
2026-02-19 18:13:34 +01:00
2026-02-19 18:13:34 +01:00
2026-02-20 19:50:28 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 21:18:40 +01:00
2026-02-18 21:39:13 +01:00
2026-02-20 22:06:55 +01:00
2026-02-20 19:46:57 +01:00
2026-02-20 21:57:24 +01:00
2026-02-20 17:07:42 +01:00
2026-02-18 21:39:13 +01:00
2026-02-20 22:18:46 +01:00
2026-02-20 23:09:51 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 23:09:51 +01:00
2026-02-20 21:57:24 +01:00
2026-02-20 22:18:46 +01:00
2026-02-18 21:48:08 +01:00
2026-02-18 21:48:08 +01:00
2026-02-18 21:48:08 +01:00
2026-02-20 17:07:42 +01:00
2026-02-18 21:48:08 +01:00
2026-02-20 23:09:51 +01:00
2026-02-20 22:57:40 +01:00
2026-02-20 22:18:46 +01:00
2026-02-20 22:18:46 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 23:09:51 +01:00
2026-02-20 22:30:28 +01:00
2026-02-19 00:23:04 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:06:55 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 23:31:27 +01:00
2026-02-20 23:31:27 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:18:46 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 22:30:28 +01:00
2026-02-20 22:18:46 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 23:31:27 +01:00
2026-02-18 21:48:08 +01:00
2026-02-20 22:06:55 +01:00
2026-02-20 21:57:24 +01:00
2026-02-20 18:42:08 +01:00
2026-02-20 21:57:24 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 19:50:28 +01:00
2026-02-20 18:58:32 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 23:31:27 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 23:09:51 +01:00
2026-02-18 21:39:13 +01:00
2026-02-18 21:39:13 +01:00
2026-02-20 21:18:40 +01:00
2026-02-20 23:21:14 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 22:30:28 +01:00
2026-02-20 23:21:14 +01:00
2026-02-20 18:58:32 +01:00
2026-02-20 18:58:32 +01:00
2026-02-18 21:48:08 +01:00
2026-02-18 21:48:08 +01:00
2026-02-18 21:48:08 +01:00
2026-02-20 23:09:51 +01:00
2026-02-19 00:05:20 +01:00
2026-02-19 00:05:20 +01:00
2026-02-20 17:07:42 +01:00
2026-02-20 22:57:40 +01:00
2026-02-18 21:39:13 +01:00
2026-02-20 21:57:24 +01:00
2026-02-20 21:57:24 +01:00
2026-02-20 23:09:51 +01:00
2026-02-20 22:30:28 +01:00
2026-02-20 22:53:16 +01:00
2026-02-20 22:14:48 +01:00
2026-02-20 22:30:28 +01:00
2026-02-20 23:31:27 +01:00
2026-02-20 23:31:27 +01:00
2026-02-20 23:09:51 +01:00
2026-02-20 22:18:46 +01:00
2026-02-20 23:31:27 +01:00
2026-02-20 23:40:15 +01:00
2026-02-20 22:18:46 +01:00
2026-02-18 21:39:13 +01:00
2026-02-20 18:58:32 +01:00
2026-02-20 23:40:15 +01:00