test: remove -v output of test_readme.go (#1115)

Only output when something is wrong, not by default when you just run
with -v.

Cleans the test output a little.
This commit is contained in:
Miek Gieben 2017-09-28 09:46:41 +01:00 committed by GitHub
parent 44a0cb9557
commit 9d736fd754

View file

@ -15,7 +15,7 @@ import (
)
// Pasrse all README.md's of the plugin and check if every example Corefile
// actually works. Each corefile is only used if:
// actually works. Each corefile is only used if the language is set to 'corefile':
//
// ~~~ corefile
// . {
@ -49,11 +49,10 @@ func TestReadme(t *testing.T) {
// Test each snippet.
for _, in := range inputs {
t.Logf("Testing %s, with %d byte snippet", readme, len(in.Body()))
dnsserver.Port = strconv.Itoa(port)
server, err := caddy.Start(in)
if err != nil {
t.Errorf("Failed to start server for input %q:\n%s", err, in.Body())
t.Errorf("Failed to start server with %s, for input %q:\n%s", readme, err, in.Body())
}
server.Stop()
port++