From 131fed6134dddcd0729d0e2f9246a33050565e0e Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Wed, 25 Apr 2018 13:23:38 -0700 Subject: [PATCH] embed,integration,snapshot: use "LogOutputs" Signed-off-by: Gyuho Lee --- embed/config_test.go | 2 +- integration/embed_test.go | 4 ++-- snapshot/member_test.go | 2 +- snapshot/v3_snapshot_test.go | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/embed/config_test.go b/embed/config_test.go index 60b7c6d0315a..3202b2e63b96 100644 --- a/embed/config_test.go +++ b/embed/config_test.go @@ -157,7 +157,7 @@ func mustCreateCfgFile(t *testing.T, b []byte) *os.File { func TestAutoCompactionModeInvalid(t *testing.T) { cfg := NewConfig() cfg.Logger = "zap" - cfg.LogOutput = []string{"/dev/null"} + cfg.LogOutputs = []string{"/dev/null"} cfg.Debug = false cfg.AutoCompactionMode = "period" err := cfg.Validate() diff --git a/integration/embed_test.go b/integration/embed_test.go index 985fe3929fce..4df5ffbc6e6a 100644 --- a/integration/embed_test.go +++ b/integration/embed_test.go @@ -53,7 +53,7 @@ func TestEmbedEtcd(t *testing.T) { for i := range tests { tests[i].cfg = *embed.NewConfig() tests[i].cfg.Logger = "zap" - tests[i].cfg.LogOutput = []string{"/dev/null"} + tests[i].cfg.LogOutputs = []string{"/dev/null"} tests[i].cfg.Debug = false } @@ -180,7 +180,7 @@ func newEmbedURLs(secure bool, n int) (urls []url.URL) { func setupEmbedCfg(cfg *embed.Config, curls []url.URL, purls []url.URL) { cfg.Logger = "zap" - cfg.LogOutput = []string{"/dev/null"} + cfg.LogOutputs = []string{"/dev/null"} cfg.Debug = false cfg.ClusterState = "new" diff --git a/snapshot/member_test.go b/snapshot/member_test.go index 652b0c94733d..713297a978a9 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 = []string{"/dev/null"} + cfg.LogOutputs = []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 bed892efdd2d..5443e9b79d7a 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 = []string{"/dev/null"} + cfg.LogOutputs = []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 = []string{"/dev/null"} + cfg.LogOutputs = []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 = []string{"/dev/null"} + cfg.LogOutputs = []string{"/dev/null"} cfg.Debug = false cfg.Name = fmt.Sprintf("%d", i) cfg.InitialClusterToken = testClusterTkn