aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/api_packages_pub_test.go
diff options
context:
space:
mode:
authorNanguan Lin <70063547+lng2020@users.noreply.github.com>2023-10-10 21:39:58 +0800
committerGitHub <noreply@github.com>2023-10-10 15:39:58 +0200
commit5b6258a0b94737ec3db1ce418d0c933512a71f78 (patch)
treed1d1a78491e575734b1a683909d5860c0349a43f /tests/integration/api_packages_pub_test.go
parent2c7b6c378e73665920056b1b20ecd8fdd78f4045 (diff)
downloadgitea-5b6258a0b94737ec3db1ce418d0c933512a71f78.tar.gz
gitea-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_pub_test.go')
-rw-r--r--tests/integration/api_packages_pub_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/api_packages_pub_test.go b/tests/integration/api_packages_pub_test.go
index cae280c0ec..6e9d8742f4 100644
--- a/tests/integration/api_packages_pub_test.go
+++ b/tests/integration/api_packages_pub_test.go
@@ -121,7 +121,7 @@ description: ` + packageDescription
assert.NoError(t, err)
assert.Equal(t, int64(len(content)), pb.Size)
- _ = uploadFile(t, result.URL, content, http.StatusBadRequest)
+ _ = uploadFile(t, result.URL, content, http.StatusConflict)
})
t.Run("Download", func(t *testing.T) {