mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-03 19:17:29 -05:00 
			
		
		
		
	Fix errors tests
This commit is contained in:
		
							parent
							
								
									68c416e414
								
							
						
					
					
						commit
						9467dbdd40
					
				@ -9,6 +9,7 @@ import (
 | 
			
		||||
	"net/http/httptest"
 | 
			
		||||
	"os"
 | 
			
		||||
	"path/filepath"
 | 
			
		||||
	"strings"
 | 
			
		||||
	"testing"
 | 
			
		||||
 | 
			
		||||
	"github.com/mholt/caddy/middleware"
 | 
			
		||||
@ -109,7 +110,7 @@ func TestErrors(t *testing.T) {
 | 
			
		||||
			t.Errorf("Test %d: Expected body %q, but got %q",
 | 
			
		||||
				i, test.expectedBody, body)
 | 
			
		||||
		}
 | 
			
		||||
		if log := buf.String(); log != test.expectedLog {
 | 
			
		||||
		if log := buf.String(); !strings.Contains(log, test.expectedLog) {
 | 
			
		||||
			t.Errorf("Test %d: Expected log %q, but got %q",
 | 
			
		||||
				i, test.expectedLog, log)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user