1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-09-15 18:56:59 +00:00

add files

This commit is contained in:
pat-s 2025-06-25 22:33:30 +02:00
parent 7ab27a7a7f
commit faa2dcdfca
No known key found for this signature in database
GPG key ID: 3C6318841EF78925
20 changed files with 1484 additions and 98 deletions

View file

@ -14,6 +14,8 @@ import (
"forgejo.org/models/packages"
"forgejo.org/models/unittest"
user_model "forgejo.org/models/user"
"forgejo.org/modules/httplib"
"forgejo.org/modules/packages"
"forgejo.org/modules/setting"
"forgejo.org/tests"
@ -167,7 +169,7 @@ func TestPackageGeneric(t *testing.T) {
location := resp.Header().Get("Location")
assert.NotEmpty(t, location)
resp2, err := (&http.Client{}).Get(location)
resp2, err := httplib.GetDefaultClient().Get(location)
require.NoError(t, err)
assert.Equal(t, http.StatusOK, resp2.StatusCode)