Commit 9d736fd7 authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

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.
parent 44a0cb95
......@@ -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++
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment