aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/delete_user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/delete_user_test.go')
-rw-r--r--tests/integration/delete_user_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/delete_user_test.go b/tests/integration/delete_user_test.go
index 806b87dc4c..ad3c882882 100644
--- a/tests/integration/delete_user_test.go
+++ b/tests/integration/delete_user_test.go
@@ -33,7 +33,7 @@ func TestUserDeleteAccount(t *testing.T) {
defer tests.PrepareTestEnv(t)()
session := loginUser(t, "user8")
- csrf := GetCSRF(t, session, "/user/settings/account")
+ csrf := GetUserCSRFToken(t, session)
urlStr := fmt.Sprintf("/user/settings/account/delete?password=%s", userPassword)
req := NewRequestWithValues(t, "POST", urlStr, map[string]string{
"_csrf": csrf,
@@ -48,7 +48,7 @@ func TestUserDeleteAccountStillOwnRepos(t *testing.T) {
defer tests.PrepareTestEnv(t)()
session := loginUser(t, "user2")
- csrf := GetCSRF(t, session, "/user/settings/account")
+ csrf := GetUserCSRFToken(t, session)
urlStr := fmt.Sprintf("/user/settings/account/delete?password=%s", userPassword)
req := NewRequestWithValues(t, "POST", urlStr, map[string]string{
"_csrf": csrf,