Fixed tests
This commit is contained in:
parent
29a48d94a5
commit
33061c0c4a
@ -118,8 +118,8 @@ func testRoute(t *testing.T, app *aero.Application, route string) {
|
|||||||
status := response.Code
|
status := response.Code
|
||||||
|
|
||||||
switch status {
|
switch status {
|
||||||
case 200, 302:
|
case http.StatusOK, http.StatusTemporaryRedirect, http.StatusPermanentRedirect:
|
||||||
// 200 and 302 are allowed
|
// OK
|
||||||
default:
|
default:
|
||||||
panic(fmt.Errorf("%s | Wrong status code | %v instead of %v", route, status, http.StatusOK))
|
panic(fmt.Errorf("%s | Wrong status code | %v instead of %v", route, status, http.StatusOK))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user