add client test

pull/2344/head
anirut 2 years ago
parent fb46db740d
commit 831132dbd4
  1. 7
      transport/http/client_test.go

@ -363,4 +363,11 @@ func TestNewClient(t *testing.T) {
if err == nil {
t.Error("err should be equal to encoder error")
}
headersCallOpt := Headers(map[string]string{
"trace_id": "xxxx",
})
err = client.Invoke(context.Background(), "POST", "/go", map[string]string{"name": "kratos"}, nil, headersCallOpt)
if err == nil {
t.Error("err should be equal to encoder error")
}
}

Loading…
Cancel
Save