diff options
author | qwerty287 <80460567+qwerty287@users.noreply.github.com> | 2022-02-27 13:17:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-27 20:17:42 +0800 |
commit | 1563a45623bd3cea617b2a4395bcf3477023c6f2 (patch) | |
tree | 7ca09734eaf22d7c12738778b8614bb0735e420e /integrations | |
parent | 3ba9dcf4b4c82f2fa047e1278115b9e6b5464d53 (diff) | |
download | gitea-1563a45623bd3cea617b2a4395bcf3477023c6f2.tar.gz gitea-1563a45623bd3cea617b2a4395bcf3477023c6f2.zip |
Fix page and missing return on unadopted repos API (#18848)
* Fix page and missing return on unadopted repos API
Page must be 1 if it's not specified and it should return after sending an internal server error.
* Allow ignore pages
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/api_repo_test.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/integrations/api_repo_test.go b/integrations/api_repo_test.go index 52764a3a69..ce1ecb1d43 100644 --- a/integrations/api_repo_test.go +++ b/integrations/api_repo_test.go @@ -468,7 +468,6 @@ func TestAPIRepoTransfer(t *testing.T) { expectedStatus int }{ // Disclaimer for test story: "user1" is an admin, "user2" is normal user and part of in owner team of org "user3" - // Transfer to a user with teams in another org should fail {ctxUserID: 1, newOwner: "user3", teams: &[]int64{5}, expectedStatus: http.StatusForbidden}, // Transfer to a user with non-existent team IDs should fail |