From 33061c0c4a5b84682b63a912198e8a6ef591ac80 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Mon, 3 Jun 2019 18:36:59 +0900 Subject: [PATCH] Fixed tests --- main_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) }