From b5aa46486b87a47d782566d85f63c8ff6307ec56 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Thu, 15 Aug 2019 11:48:53 -0700 Subject: [PATCH] clientv3/integration: fix "mvcc.NewStore" call Signed-off-by: Gyuho Lee --- clientv3/integration/maintenance_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clientv3/integration/maintenance_test.go b/clientv3/integration/maintenance_test.go index 4fecaf812f6..ddd52abdc4b 100644 --- a/clientv3/integration/maintenance_test.go +++ b/clientv3/integration/maintenance_test.go @@ -20,6 +20,7 @@ import ( "fmt" "io" "io/ioutil" + "math" "path/filepath" "testing" "time" @@ -149,7 +150,7 @@ func TestMaintenanceSnapshotErrorInflight(t *testing.T) { clus.Members[0].Stop(t) dpath := filepath.Join(clus.Members[0].DataDir, "member", "snap", "db") b := backend.NewDefaultBackend(dpath) - s := mvcc.NewStore(zap.NewExample(), b, &lease.FakeLessor{}, nil) + s := mvcc.NewStore(zap.NewExample(), b, &lease.FakeLessor{}, nil, mvcc.StoreConfig{CompactionBatchLimit: math.MaxInt32}) rev := 100000 for i := 2; i <= rev; i++ { s.Put([]byte(fmt.Sprintf("%10d", i)), bytes.Repeat([]byte("a"), 1024), lease.NoLease)