fix: ignore close errors in tests and queries

This commit is contained in:
2026-05-24 22:46:08 +02:00
parent 4606c790f1
commit 5d7518afd9
4 changed files with 11 additions and 11 deletions

View File

@@ -12,7 +12,7 @@ func TestRunMigrationsCreatesHotPathIndexes(t *testing.T) {
if err != nil {
t.Fatalf("open sqlite: %v", err)
}
defer sqlDB.Close()
defer func() { _ = sqlDB.Close() }()
sqlDB.SetMaxOpenConns(1)
if err := RunMigrations(sqlDB); err != nil {