diff --git a/transport/http/client_test.go b/transport/http/client_test.go index b9d3631b0..aea1c55cd 100644 --- a/transport/http/client_test.go +++ b/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")