More lint

This commit is contained in:
ItalyPaleAle 2025-04-25 22:02:25 -07:00
parent 1ba9420247
commit 45a4445559
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -1859,7 +1859,7 @@ func TestContextBindRequestTooLarge(t *testing.T) {
Foo string `json:"foo"`
Bar string `json:"bar"`
}
assert.Error(t, c.BindJSON(&obj))
require.Error(t, c.BindJSON(&obj))
c.Writer.WriteHeaderNow()
assert.Empty(t, obj.Bar)

View File

@ -405,7 +405,7 @@ func TestLoadHTMLFSUsingTLS(t *testing.T) {
},
}
client := &http.Client{Transport: tr}
res, err := client.Get(fmt.Sprintf("%s/test", ts.URL))
res, err := client.Get(ts.URL + "/test")
if err != nil {
t.Error(err)
}
@ -425,7 +425,7 @@ func TestLoadHTMLFSFuncMap(t *testing.T) {
)
defer ts.Close()
res, err := http.Get(fmt.Sprintf("%s/raw", ts.URL))
res, err := http.Get(ts.URL + "/raw")
if err != nil {
t.Error(err)
}