Browse Source

integration: use /dev/null to discard server logs

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
674388f599
1 changed files with 2 additions and 2 deletions
  1. 2 2
      integration/embed_test.go

+ 2 - 2
integration/embed_test.go

@@ -53,7 +53,7 @@ func TestEmbedEtcd(t *testing.T) {
 	for i := range tests {
 	for i := range tests {
 		tests[i].cfg = *embed.NewConfig()
 		tests[i].cfg = *embed.NewConfig()
 		tests[i].cfg.Logger = "zap"
 		tests[i].cfg.Logger = "zap"
-		tests[i].cfg.LogOutput = "discard"
+		tests[i].cfg.LogOutput = "/dev/null"
 		tests[i].cfg.Debug = false
 		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) {
 func setupEmbedCfg(cfg *embed.Config, curls []url.URL, purls []url.URL) {
 	cfg.Logger = "zap"
 	cfg.Logger = "zap"
-	cfg.LogOutput = "discard"
+	cfg.LogOutput = "/dev/null"
 	cfg.Debug = false
 	cfg.Debug = false
 
 
 	cfg.ClusterState = "new"
 	cfg.ClusterState = "new"