summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2024-04-30 17:36:28 +0200
committerGitHub <noreply@github.com>2024-04-30 15:36:28 +0000
commit022eac4ac8e59f861237cc1e02f7ef117eaf8e30 (patch)
tree36c00a4011a82392c4bac5d6ba174e032d24cd80 /tests
parenta75b0d281351526912c7c63295f7c5171617f053 (diff)
downloadgitea-022eac4ac8e59f861237cc1e02f7ef117eaf8e30.tar.gz
gitea-022eac4ac8e59f861237cc1e02f7ef117eaf8e30.zip
Get repo assignees and reviewers should ignore deactivated users (#30770) (#30782)
Backport #30770 If an user is deactivated, it should not be in the list of users who are suggested to be assigned or review-requested. old assignees or reviewers are not affected. --- *Sponsored by Kithara Software GmbH*
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/api_repo_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/integration/api_repo_test.go b/tests/integration/api_repo_test.go
index bc2720d51e..f33827e58b 100644
--- a/tests/integration/api_repo_test.go
+++ b/tests/integration/api_repo_test.go
@@ -684,7 +684,9 @@ func TestAPIRepoGetReviewers(t *testing.T) {
resp := MakeRequest(t, req, http.StatusOK)
var reviewers []*api.User
DecodeJSON(t, resp, &reviewers)
- assert.Len(t, reviewers, 4)
+ if assert.Len(t, reviewers, 3) {
+ assert.ElementsMatch(t, []int64{1, 4, 11}, []int64{reviewers[0].ID, reviewers[1].ID, reviewers[2].ID})
+ }
}
func TestAPIRepoGetAssignees(t *testing.T) {