test: update TestGetFuzzDB to expect new DB instances per call
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user