mirror of
https://github.com/taigrr/bitcask
synced 2025-01-18 04:03:17 -08:00
parent
9fafcad9a6
commit
057c147f89
@ -626,6 +626,9 @@ func BenchmarkScan(b *testing.B) {
|
|||||||
keys = append(keys, key)
|
keys = append(keys, key)
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
b.Fatal(err)
|
||||||
|
}
|
||||||
sort.Strings(keys)
|
sort.Strings(keys)
|
||||||
if !reflect.DeepEqual(expected, keys) {
|
if !reflect.DeepEqual(expected, keys) {
|
||||||
b.Fatal(fmt.Errorf("expected keys=#%v got=%#v", expected, keys))
|
b.Fatal(fmt.Errorf("expected keys=#%v got=%#v", expected, keys))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user