mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-19 01:05:37 +03:00
Update test case
This commit is contained in:
parent
4cce8c7b6b
commit
01f3593fd6
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ import (
|
||||||
|
|
||||||
func TestRoot(t *testing.T) {
|
func TestRoot(t *testing.T) {
|
||||||
// Predefined error substrings
|
// Predefined error substrings
|
||||||
parseErrContent := "Parse error:"
|
parseErrContent := "pars"
|
||||||
unableToAccessErrContent := "Unable to access root path"
|
unableToAccessErrContent := "Unable to access root path"
|
||||||
|
|
||||||
existingDirPath, err := getTempDirPath()
|
existingDirPath, err := getTempDirPath()
|
||||||
|
@ -80,7 +80,7 @@ func TestRoot(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.Contains(err.Error(), test.expectedErrContent) {
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue