Skip to content

Commit 9d6588e

Browse files
committed
Fix test
1 parent dd0ebc6 commit 9d6588e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/integration/api_pull_review_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ func TestAPIPullReviewStayDismissed(t *testing.T) {
391391
session8 := loginUser(t, user8.LoginName)
392392
token8 := getTokenForLoggedInUser(t, session8, auth_model.AccessTokenScopeWriteRepository)
393393

394+
// add user8 as collaborator of repo 1 otherwise he can't be as reviewer
395+
assert.NoError(t, repo_service.AddOrUpdateCollaborator(db.DefaultContext, repo, user8, perm.AccessModeRead))
396+
394397
// user2 request user8
395398
req := NewRequestWithJSON(t, http.MethodPost, fmt.Sprintf("/api/v1/repos/%s/%s/pulls/%d/requested_reviewers", repo.OwnerName, repo.Name, pullIssue.Index), &api.PullReviewRequestOptions{
396399
Reviewers: []string{user8.LoginName},

0 commit comments

Comments
 (0)