mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-11 00:40:00 +08:00
chore: fix lint errors (#2520)
This commit is contained in:
@@ -237,7 +237,7 @@ func TestEngine_notFoundHandler(t *testing.T) {
|
||||
defer ts.Close()
|
||||
|
||||
client := ts.Client()
|
||||
err := func(ctx context.Context) error {
|
||||
err := func(_ context.Context) error {
|
||||
req, err := http.NewRequest("GET", ts.URL+"/bad", http.NoBody)
|
||||
assert.Nil(t, err)
|
||||
res, err := client.Do(req)
|
||||
@@ -260,7 +260,7 @@ func TestEngine_notFoundHandlerNotNil(t *testing.T) {
|
||||
defer ts.Close()
|
||||
|
||||
client := ts.Client()
|
||||
err := func(ctx context.Context) error {
|
||||
err := func(_ context.Context) error {
|
||||
req, err := http.NewRequest("GET", ts.URL+"/bad", http.NoBody)
|
||||
assert.Nil(t, err)
|
||||
res, err := client.Do(req)
|
||||
|
||||
Reference in New Issue
Block a user