Skip to content

Commit 18b2a16

Browse files
committed
Fix fork
1 parent fc44629 commit 18b2a16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/repo_fork_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ func TestForkListLimitedAndPrivateRepos(t *testing.T) {
118118
req := NewRequest(t, "GET", "/user2/repo1/forks")
119119
resp := user1Sess.MakeRequest(t, req, http.StatusOK)
120120
htmlDoc := NewHTMLParser(t, resp.Body)
121-
assert.EqualValues(t, 1, htmlDoc.Find(forkItemSelector).Length())
121+
// since user1 is an admin, he can get both of the forked repositories
122+
assert.EqualValues(t, 2, htmlDoc.Find(forkItemSelector).Length())
122123

123124
assert.NoError(t, org_service.AddTeamMember(db.DefaultContext, ownerTeam2, user1))
124125
resp = user1Sess.MakeRequest(t, req, http.StatusOK)

0 commit comments

Comments
 (0)