Skip to content

Commit f4767f1

Browse files
committed
Halt test on error
1 parent d591ef0 commit f4767f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reader_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ func BenchmarkOpen(b *testing.B) {
823823
for i := 0; i < b.N; i++ {
824824
db, err = Open("GeoLite2-City.mmdb")
825825
if err != nil {
826-
b.Error(err)
826+
b.Fatal(err)
827827
}
828828
}
829829
assert.NotNil(b, db)

0 commit comments

Comments
 (0)