Skip to content

Commit e4c2f4b

Browse files
committed
fix test
1 parent 90a31b0 commit e4c2f4b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/integration/actions_settings_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"fmt"
88
"net/http"
99
"net/url"
10-
"strconv"
1110
"testing"
1211

1312
actions_model "code.gitea.io/gitea/models/actions"
@@ -52,9 +51,8 @@ func TestActionsCollaborativeOwner(t *testing.T) {
5251
doGitClone(dstPath, u)(t)
5352

5453
// remove user10 from the list of collaborative owners
55-
req = NewRequestWithValues(t, "POST", fmt.Sprintf("/%s/%s/settings/actions/general/collaborative_owner/delete", repo.Owner.UserName, repo.Name), map[string]string{
54+
req = NewRequestWithValues(t, "POST", fmt.Sprintf("/%s/%s/settings/actions/general/collaborative_owner/delete?id=%d", repo.Owner.UserName, repo.Name, user10.ID), map[string]string{
5655
"_csrf": GetUserCSRFToken(t, user2Session),
57-
"id": strconv.FormatInt(user10.ID, 10),
5856
})
5957
user2Session.MakeRequest(t, req, http.StatusOK)
6058

0 commit comments

Comments
 (0)