From 1d18f5d1540a6c34b48bb01e03ad33eb74cdf2fa Mon Sep 17 00:00:00 2001 From: kunw Date: Fri, 28 Oct 2016 17:30:00 +0800 Subject: [PATCH] Updates for controller tests. --- src/ui/controllers/controllers_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/controllers/controllers_test.go b/src/ui/controllers/controllers_test.go index a6724ca25..46e239be6 100644 --- a/src/ui/controllers/controllers_test.go +++ b/src/ui/controllers/controllers_test.go @@ -112,7 +112,7 @@ func TestMain(t *testing.T) { r, _ = http.NewRequest("GET", "/account_setting", nil) w = httptest.NewRecorder() beego.BeeApp.Handlers.ServeHTTP(w, r) - assert.Equal(int(302), w.Code, "'/account_setting' httpStatusCode should be 302") + assert.Equal(int(200), w.Code, "'/account_setting' httpStatusCode should be 200") r, _ = http.NewRequest("GET", "/change_password", nil) w = httptest.NewRecorder()