summaryrefslogtreecommitdiffstats
path: root/tests/integration/api_packages_rubygems_test.go
diff options
context:
space:
mode:
authorNanguan Lin <70063547+lng2020@users.noreply.github.com>2023-10-10 15:39:58 +0200
committerGitHub <noreply@github.com>2023-10-10 15:39:58 +0200
commit5b6258a0b94737ec3db1ce418d0c933512a71f78 (patch)
treed1d1a78491e575734b1a683909d5860c0349a43f /tests/integration/api_packages_rubygems_test.go
parentIncrease queue length (#27555) (diff)
downloadforgejo-5b6258a0b94737ec3db1ce418d0c933512a71f78.tar.xz
forgejo-5b6258a0b94737ec3db1ce418d0c933512a71f78.zip
Fix the wrong HTTP response status code for duplicate packages (#27480)
fix #27470 (hope there is nothing missing 😢 ) --------- Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Diffstat (limited to 'tests/integration/api_packages_rubygems_test.go')
-rw-r--r--tests/integration/api_packages_rubygems_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/api_packages_rubygems_test.go b/tests/integration/api_packages_rubygems_test.go
index 2099357cbb..a3df143209 100644
--- a/tests/integration/api_packages_rubygems_test.go
+++ b/tests/integration/api_packages_rubygems_test.go
@@ -150,7 +150,7 @@ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA`)
t.Run("UploadExists", func(t *testing.T) {
defer tests.PrintCurrentTest(t)()
- uploadFile(t, http.StatusBadRequest)
+ uploadFile(t, http.StatusConflict)
})
t.Run("Download", func(t *testing.T) {