diff options
author | Nanguan Lin <70063547+lng2020@users.noreply.github.com> | 2023-10-10 21:39:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-10 15:39:58 +0200 |
commit | 5b6258a0b94737ec3db1ce418d0c933512a71f78 (patch) | |
tree | d1d1a78491e575734b1a683909d5860c0349a43f /tests/integration/api_packages_chef_test.go | |
parent | 2c7b6c378e73665920056b1b20ecd8fdd78f4045 (diff) | |
download | gitea-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_chef_test.go')
-rw-r--r-- | tests/integration/api_packages_chef_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/api_packages_chef_test.go b/tests/integration/api_packages_chef_test.go index 4a1fe2607e..7f55a84f09 100644 --- a/tests/integration/api_packages_chef_test.go +++ b/tests/integration/api_packages_chef_test.go @@ -322,7 +322,7 @@ nwIDAQAB assert.Equal(t, fmt.Sprintf("%s.tar.gz", packageVersion), pfs[0].Name) assert.True(t, pfs[0].IsLead) - uploadPackage(t, packageVersion, http.StatusBadRequest) + uploadPackage(t, packageVersion, http.StatusConflict) }) t.Run("Download", func(t *testing.T) { |