1
0
mirror of https://github.com/taigrr/bitcask synced 2025-01-18 04:03:17 -08:00

Added missing error check (#13)

err was assigned, but not checked.
This commit is contained in:
Christian Muehlhaeuser 2019-07-19 12:22:56 +02:00 committed by James Mills
parent 9fafcad9a6
commit 057c147f89

View File

@ -626,6 +626,9 @@ func BenchmarkScan(b *testing.B) {
keys = append(keys, key)
return nil
})
if err != nil {
b.Fatal(err)
}
sort.Strings(keys)
if !reflect.DeepEqual(expected, keys) {
b.Fatal(fmt.Errorf("expected keys=#%v got=%#v", expected, keys))