diff options
author | 2016-11-29 21:58:13 +0000 | |
---|---|---|
committer | 2016-11-29 21:58:13 +0000 | |
commit | b85c6788dd001189394b9f058823e41507a944a1 (patch) | |
tree | d4479b3e7bd14b7b0087a1d5e7473c7f0a233972 /middleware/httpproxy/setup_test.go | |
parent | eb8158ff53cc573d00006e7eacd9469e4208fce4 (diff) | |
parent | 8c8b37a30ea400603c9cb381cc9b71c4da93a536 (diff) | |
download | coredns-b85c6788dd001189394b9f058823e41507a944a1.tar.gz coredns-b85c6788dd001189394b9f058823e41507a944a1.tar.zst coredns-b85c6788dd001189394b9f058823e41507a944a1.zip |
Merge branch 'master' of github.com:miekg/coredns
Diffstat (limited to 'middleware/httpproxy/setup_test.go')
-rw-r--r-- | middleware/httpproxy/setup_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/middleware/httpproxy/setup_test.go b/middleware/httpproxy/setup_test.go index 71d631220..82db40aff 100644 --- a/middleware/httpproxy/setup_test.go +++ b/middleware/httpproxy/setup_test.go @@ -2,6 +2,7 @@ package httpproxy import ( "io/ioutil" + "log" "os" "strings" "testing" @@ -9,7 +10,9 @@ import ( "github.com/mholt/caddy" ) -func TestSetupChaos(t *testing.T) { +func TestSetupHttpproxy(t *testing.T) { + log.SetOutput(ioutil.Discard) + tests := []struct { input string shouldErr bool @@ -55,7 +58,6 @@ func TestSetupChaos(t *testing.T) { } if err != nil { - t.Logf("%q", err) if !test.shouldErr { t.Errorf("Test %d: Expected no error but found one for input %s. Error was: %v", i, test.input, err) } |