Skip to content

Commit

Permalink
mvcc: increase number of keys created for TestHashKVWhenCompacting
Browse files Browse the repository at this point in the history
  • Loading branch information
fanminshi committed Jul 28, 2017
1 parent 72ef086 commit f402b8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mvcc/kvstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ func TestHashKVWhenCompacting(t *testing.T) {
s := NewStore(b, &lease.FakeLessor{}, nil)
defer os.Remove(tmpPath)

rev := 1000
rev := 10000
for i := 2; i <= rev; i++ {
s.Put([]byte("foo"), []byte(fmt.Sprintf("bar%d", i)), lease.NoLease)
}
Expand Down Expand Up @@ -558,7 +558,7 @@ func TestHashKVWhenCompacting(t *testing.T) {
revHash[r.compactRev] = r.hash
}
if r.hash != revHash[r.compactRev] {
t.Fatalf("Hashes differ (current %v) != (saved %v)", r.hash, revHash[r.compactRev])
t.Fatalf("hashes differ (current %v) != (saved %v) at %v", r.hash, revHash[r.compactRev], r.compactRev)
}
}
}()
Expand Down

0 comments on commit f402b8b

Please sign in to comment.