test: update TestGetFuzzDB to expect new DB instances per call

This commit is contained in:
2026-01-12 22:34:44 +01:00
parent 4dfe260953
commit 250ff79eeb

View File

@@ -1704,8 +1704,11 @@ func TestGetFuzzDB(t *testing.T) {
if err2 != nil { if err2 != nil {
t.Fatalf("Second GetFuzzDB call failed: %v", err2) t.Fatalf("Second GetFuzzDB call failed: %v", err2)
} }
if db2 != db { if db2 == nil {
t.Fatal("GetFuzzDB should return the same database instance") t.Fatal("Second GetFuzzDB returned nil database")
}
if db2 == db {
t.Fatal("GetFuzzDB should return a new database instance for each call")
} }
} }