Skip to content

Commit 98159e8

Browse files
committed
Use t.Errorf for index properties JSON assertions
1 parent 5e1ff08 commit 98159e8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

hnswtoolbox_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ func TestExtractResponseUnmarshalIncludesIndexProperties(t *testing.T) {
3131
}
3232

3333
if response.Summary.IndexProperties.M != 16 {
34-
t.Fatalf("M mismatch: got %d", response.Summary.IndexProperties.M)
34+
t.Errorf("M mismatch: got %d", response.Summary.IndexProperties.M)
3535
}
3636
if response.Summary.IndexProperties.EfConstruction != 200 {
37-
t.Fatalf("EfConstruction mismatch: got %d", response.Summary.IndexProperties.EfConstruction)
37+
t.Errorf("EfConstruction mismatch: got %d", response.Summary.IndexProperties.EfConstruction)
3838
}
3939
if response.Summary.IndexProperties.CurElementCount != 10000 {
40-
t.Fatalf("CurElementCount mismatch: got %d", response.Summary.IndexProperties.CurElementCount)
40+
t.Errorf("CurElementCount mismatch: got %d", response.Summary.IndexProperties.CurElementCount)
4141
}
4242
if response.Summary.IndexProperties.MaxElements != 12000 {
43-
t.Fatalf("MaxElements mismatch: got %d", response.Summary.IndexProperties.MaxElements)
43+
t.Errorf("MaxElements mismatch: got %d", response.Summary.IndexProperties.MaxElements)
4444
}
4545
if response.Summary.IndexProperties.PersistedVersion != 1 {
46-
t.Fatalf("PersistedVersion mismatch: got %d", response.Summary.IndexProperties.PersistedVersion)
46+
t.Errorf("PersistedVersion mismatch: got %d", response.Summary.IndexProperties.PersistedVersion)
4747
}
4848
if response.Summary.IndexProperties.WordSizeBytes != 8 {
49-
t.Fatalf("WordSizeBytes mismatch: got %d", response.Summary.IndexProperties.WordSizeBytes)
49+
t.Errorf("WordSizeBytes mismatch: got %d", response.Summary.IndexProperties.WordSizeBytes)
5050
}
5151
}

0 commit comments

Comments
 (0)