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 27, 2017
1 parent 72ef086 commit 89f0276
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 := 100000
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 89f0276

Please sign in to comment.