We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0d72bc commit e92e74bCopy full SHA for e92e74b
reader_test.go
@@ -645,7 +645,9 @@ func BenchmarkLookup(b *testing.B) {
645
for i := 0; i < b.N; i++ {
646
randomIPv4Address(r, ip)
647
err = db.Lookup(ip, &result)
648
- assert.NoError(b, err)
+ if err != nil {
649
+ b.Error(err)
650
+ }
651
}
652
assert.NoError(b, db.Close(), "error on close")
653
@@ -667,7 +669,9 @@ func BenchmarkCountryCode(b *testing.B) {
667
669
668
670
671
672
673
674
675
676
677
0 commit comments