fix lint by http err

pull/2324/head
wangtingshun 2 years ago
parent 6c33cd6074
commit a58de927f6
  1. 2
      transport/http/client_test.go

@ -364,7 +364,7 @@ func TestNewClient(t *testing.T) {
t.Error("err should be equal to encoder error")
}
reqURL := fmt.Sprintf(client.target.Endpoint + "/go")
req, err := nethttp.NewRequest("POST", reqURL, nil)
req, _ := nethttp.NewRequest("POST", reqURL, nil)
err = client.DoWithMiddleware(req, nil, EmptyCallOption{})
if err == nil {
t.Error("err should not be equal to nil")

Loading…
Cancel
Save