mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 01:34:21 -04:00 
			
		
		
		
	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:
		| @@ -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++ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user