From 89f0276b31ad593c94a405429869fc54db00e554 Mon Sep 17 00:00:00 2001 From: fanmin shi Date: Wed, 26 Jul 2017 15:41:16 -0700 Subject: [PATCH] mvcc: increase number of keys created for TestHashKVWhenCompacting --- mvcc/kvstore_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mvcc/kvstore_test.go b/mvcc/kvstore_test.go index f60ee2eb2ab8..1dc3126a3c22 100644 --- a/mvcc/kvstore_test.go +++ b/mvcc/kvstore_test.go @@ -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) } @@ -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) } } }()