Kaynağa Gözat

Merge pull request #9624 from icecrime/silence_loginwithouttty_test

Suppress output of TestLoginWithoutTTY
Alexander Morozov 10 yıl önce
ebeveyn
işleme
a07835d876
1 değiştirilmiş dosya ile 0 ekleme ve 4 silme
  1. 0 4
      integration-cli/docker_cli_login_test.go

+ 0 - 4
integration-cli/docker_cli_login_test.go

@@ -3,16 +3,12 @@ package main
 import (
 import (
 	"bytes"
 	"bytes"
 	"io"
 	"io"
-	"os"
 	"os/exec"
 	"os/exec"
 	"testing"
 	"testing"
 )
 )
 
 
 func TestLoginWithoutTTY(t *testing.T) {
 func TestLoginWithoutTTY(t *testing.T) {
 	cmd := exec.Command(dockerBinary, "login")
 	cmd := exec.Command(dockerBinary, "login")
-	// setup STDOUT and STDERR so that we see any output and errors in our console
-	cmd.Stdout = os.Stdout
-	cmd.Stderr = os.Stderr
 
 
 	// create a buffer with text then a new line as a return
 	// create a buffer with text then a new line as a return
 	buf := bytes.NewBuffer([]byte("buffer test string \n"))
 	buf := bytes.NewBuffer([]byte("buffer test string \n"))