Fixed tests

This commit is contained in:
2019-06-03 18:36:59 +09:00
parent 29a48d94a5
commit 33061c0c4a

View File

@ -118,8 +118,8 @@ func testRoute(t *testing.T, app *aero.Application, route string) {
status := response.Code
switch status {
case 200, 302:
// 200 and 302 are allowed
case http.StatusOK, http.StatusTemporaryRedirect, http.StatusPermanentRedirect:
// OK
default:
panic(fmt.Errorf("%s | Wrong status code | %v instead of %v", route, status, http.StatusOK))
}