diff --git a/command/agent/agent_endpoint_test.go b/command/agent/agent_endpoint_test.go index e333b48bc9..310c20147d 100644 --- a/command/agent/agent_endpoint_test.go +++ b/command/agent/agent_endpoint_test.go @@ -1564,7 +1564,7 @@ func TestAgent_Monitor(t *testing.T) { a := &TestAgent{ Name: t.Name(), LogWriter: logWriter, - LogOutput: io.MultiWriter(os.Stdout, logWriter), + LogOutput: io.MultiWriter(os.Stderr, logWriter), } a.Start() defer a.Shutdown() diff --git a/command/agent/check_test.go b/command/agent/check_test.go index ce541dff48..657e9de985 100644 --- a/command/agent/check_test.go +++ b/command/agent/check_test.go @@ -234,7 +234,6 @@ func TestCheckHTTPCritical(t *testing.T) { // var server *httptest.Server server := mockHTTPServer(150) - fmt.Println(server.URL) expectHTTPStatus(t, server.URL, api.HealthCritical) server.Close()