From 01f3593fd6cf3f712326a79b4c89657b353f86cd Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 26 Aug 2017 08:11:43 -0600 Subject: [PATCH] Update test case --- caddyhttp/root/root_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caddyhttp/root/root_test.go b/caddyhttp/root/root_test.go index e4ad8841..3ea07185 100644 --- a/caddyhttp/root/root_test.go +++ b/caddyhttp/root/root_test.go @@ -14,7 +14,7 @@ import ( func TestRoot(t *testing.T) { // Predefined error substrings - parseErrContent := "Parse error:" + parseErrContent := "pars" unableToAccessErrContent := "Unable to access root path" existingDirPath, err := getTempDirPath() @@ -80,7 +80,7 @@ func TestRoot(t *testing.T) { } if !strings.Contains(err.Error(), test.expectedErrContent) { - t.Errorf("Test %d: Expected error to contain: %v, found error: %v, input: %s", i, test.expectedErrContent, err, test.input) + t.Errorf("Test %d: Expected error to contain '%v', found error: %v, input: %s", i, test.expectedErrContent, err, test.input) } }