aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/api_nodeinfo_test.go
diff options
context:
space:
mode:
authorZettat123 <zettat123@gmail.com>2024-02-24 20:38:43 +0800
committerGitHub <noreply@github.com>2024-02-24 12:38:43 +0000
commitc42083a33950be6ee9f822c6d0de3c3a79d1f51b (patch)
treeabbcefa5ef6f76d7c61a15c0836efa0907d7c2d9 /tests/integration/api_nodeinfo_test.go
parent267dbb4e938cc42dc09a4a893cca631b2f755557 (diff)
downloadgitea-c42083a33950be6ee9f822c6d0de3c3a79d1f51b.tar.gz
gitea-c42083a33950be6ee9f822c6d0de3c3a79d1f51b.zip
Allow non-admin users to delete review requests (#29057)
Fix #14459 The following users can add/remove review requests of a PR - the poster of the PR - the owner or collaborators of the repository - members with read permission on the pull requests unit
Diffstat (limited to 'tests/integration/api_nodeinfo_test.go')
-rw-r--r--tests/integration/api_nodeinfo_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/api_nodeinfo_test.go b/tests/integration/api_nodeinfo_test.go
index 876fb5ac13..75f8dbb4ba 100644
--- a/tests/integration/api_nodeinfo_test.go
+++ b/tests/integration/api_nodeinfo_test.go
@@ -32,8 +32,8 @@ func TestNodeinfo(t *testing.T) {
DecodeJSON(t, resp, &nodeinfo)
assert.True(t, nodeinfo.OpenRegistrations)
assert.Equal(t, "gitea", nodeinfo.Software.Name)
- assert.Equal(t, 26, nodeinfo.Usage.Users.Total)
- assert.Equal(t, 20, nodeinfo.Usage.LocalPosts)
+ assert.Equal(t, 29, nodeinfo.Usage.Users.Total)
+ assert.Equal(t, 22, nodeinfo.Usage.LocalPosts)
assert.Equal(t, 3, nodeinfo.Usage.LocalComments)
})
}