mirror of
https://github.com/goharbor/harbor
synced 2025-04-22 18:57:38 +00:00
Updates for controller tests.
This commit is contained in:
parent
8c9435324d
commit
1d18f5d154
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user