From 3e99487372a09b1469d40a3c37f20af5e3e8cdb1 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Tue, 17 Apr 2018 11:51:42 -0700 Subject: [PATCH] snapshot: set string for LogOutput Signed-off-by: Gyuho Lee --- snapshot/member_test.go | 2 +- snapshot/v3_snapshot_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/snapshot/member_test.go b/snapshot/member_test.go index 6e3608a16..652b0c947 100644 --- a/snapshot/member_test.go +++ b/snapshot/member_test.go @@ -64,7 +64,7 @@ func TestSnapshotV3RestoreMultiMemberAdd(t *testing.T) { cfg := embed.NewConfig() cfg.Logger = "zap" - cfg.LogOutput = "/dev/null" + cfg.LogOutput = []string{"/dev/null"} cfg.Debug = false cfg.Name = "3" cfg.InitialClusterToken = testClusterTkn diff --git a/snapshot/v3_snapshot_test.go b/snapshot/v3_snapshot_test.go index e86762a06..bed892efd 100644 --- a/snapshot/v3_snapshot_test.go +++ b/snapshot/v3_snapshot_test.go @@ -44,7 +44,7 @@ func TestSnapshotV3RestoreSingle(t *testing.T) { cfg := embed.NewConfig() cfg.Logger = "zap" - cfg.LogOutput = "/dev/null" + cfg.LogOutput = []string{"/dev/null"} cfg.Debug = false cfg.Name = "s1" cfg.InitialClusterToken = testClusterTkn @@ -153,7 +153,7 @@ func createSnapshotFile(t *testing.T, kvs []kv) string { cfg := embed.NewConfig() cfg.Logger = "zap" - cfg.LogOutput = "/dev/null" + cfg.LogOutput = []string{"/dev/null"} cfg.Debug = false cfg.Name = "default" cfg.ClusterState = "new" @@ -220,7 +220,7 @@ func restoreCluster(t *testing.T, clusterN int, dbPath string) ( for i := 0; i < clusterN; i++ { cfg := embed.NewConfig() cfg.Logger = "zap" - cfg.LogOutput = "/dev/null" + cfg.LogOutput = []string{"/dev/null"} cfg.Debug = false cfg.Name = fmt.Sprintf("%d", i) cfg.InitialClusterToken = testClusterTkn