0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

Update test case

This commit is contained in:
Matthew Holt 2017-08-26 08:11:43 -06:00
parent 4cce8c7b6b
commit 01f3593fd6
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -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)
}
}