Skip to content

Commit 7f54aab

Browse files
committed
Fix test
1 parent 4e597f1 commit 7f54aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/mirror_push_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func testMirrorPush(t *testing.T, u *url.URL) {
8282
}
8383

8484
func testCreatePushMirror(t *testing.T, session *TestSession, owner, repo, address, username, password, interval string) {
85-
csrf := GetCSRF(t, session, fmt.Sprintf("/%s/%s/settings", url.PathEscape(username), url.PathEscape(repo)))
85+
csrf := GetCSRF(t, session, fmt.Sprintf("/%s/%s/settings", url.PathEscape(owner), url.PathEscape(repo)))
8686
req := NewRequestWithValues(t, "POST", fmt.Sprintf("/%s/%s/settings", url.PathEscape(owner), url.PathEscape(repo)), map[string]string{
8787
"_csrf": csrf,
8888
"action": "push-mirror-add",

0 commit comments

Comments
 (0)