diff --git a/main_test.go b/main_test.go index fc80d036..cd205a09 100644 --- a/main_test.go +++ b/main_test.go @@ -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)) }