mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-09 04:18:50 +03:00
errors: Fix test
This commit is contained in:
parent
104a5998cb
commit
6001c94f30
1 changed files with 2 additions and 2 deletions
|
@ -82,8 +82,8 @@ func TestErrors(t *testing.T) {
|
||||||
expectedCode: 0,
|
expectedCode: 0,
|
||||||
expectedBody: fmt.Sprintf("%d %s\n", http.StatusForbidden,
|
expectedBody: fmt.Sprintf("%d %s\n", http.StatusForbidden,
|
||||||
http.StatusText(http.StatusForbidden)),
|
http.StatusText(http.StatusForbidden)),
|
||||||
expectedLog: fmt.Sprintf("HTTP %d could not load error page %s: %v\n",
|
expectedLog: fmt.Sprintf("could not load error page %s: %v\n",
|
||||||
http.StatusForbidden, "not_exist_file", notExistErr),
|
"not_exist_file", notExistErr),
|
||||||
expectedErr: nil,
|
expectedErr: nil,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue