mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-03-31 02:55:40 +00:00
SQLite :memory: databases create separate databases per connection. When the connection pool opens multiple connections (e.g. poller goroutine vs main test goroutine), tables created on one connection are invisible to others. Setting MaxOpenConns(1) ensures all queries use the same in-memory database, fixing TestPollerBroadcastsMultipleObservations.