refactor: minor fixes.
This commit is contained in:
parent
f258f20b04
commit
95ce4f5c1e
2 changed files with 2 additions and 2 deletions
|
@ -239,7 +239,7 @@ func TestHandlerOldWay(t *testing.T) {
|
|||
|
||||
func TestHandlerOldWayIntegration(t *testing.T) {
|
||||
errorPagesServer := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
if r.URL.RequestURI() == "/"+strconv.Itoa(503) {
|
||||
if r.URL.RequestURI() == "/503" {
|
||||
fmt.Fprintln(w, "My 503 page.")
|
||||
} else {
|
||||
fmt.Fprintln(w, "Test Server")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue