0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-06-02 10:39:50 +02:00

improve test

This commit is contained in:
Lunny Xiao 2024-05-19 11:28:52 +08:00
parent 15c439d21a
commit 50bf919576
No known key found for this signature in database
GPG key ID: C3B7C91B632F738A

View file

@ -179,7 +179,7 @@ func TestPackageGeneric(t *testing.T) {
resp2, err := (&http.Client{}).Get(location)
assert.NoError(t, err)
assert.Equal(t, http.StatusOK, resp2.StatusCode)
assert.Equal(t, http.StatusOK, resp2.StatusCode, location)
body, err := io.ReadAll(resp2.Body)
assert.NoError(t, err)