summaryrefslogtreecommitdiffstats
path: root/integrations/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/user_test.go')
-rw-r--r--integrations/user_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/user_test.go b/integrations/user_test.go
index 4cfe7700e1..24f2a4d6a8 100644
--- a/integrations/user_test.go
+++ b/integrations/user_test.go
@@ -33,7 +33,7 @@ func TestRenameUsername(t *testing.T) {
"email": "user2@example.com",
"language": "en-US",
})
- session.MakeRequest(t, req, http.StatusFound)
+ session.MakeRequest(t, req, http.StatusSeeOther)
unittest.AssertExistsAndLoadBean(t, &user_model.User{Name: "newUsername"})
unittest.AssertNotExistsBean(t, &user_model.User{Name: "user2"})
@@ -103,7 +103,7 @@ func TestRenameReservedUsername(t *testing.T) {
"email": "user2@example.com",
"language": "en-US",
})
- resp := session.MakeRequest(t, req, http.StatusFound)
+ resp := session.MakeRequest(t, req, http.StatusSeeOther)
req = NewRequest(t, "GET", test.RedirectURL(resp))
resp = session.MakeRequest(t, req, http.StatusOK)