update deps (#55)
* reflect tests Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org> * update deps Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -87,12 +87,12 @@ func TestPrometheusMetrics(t *testing.T) {
|
||||
}
|
||||
defer s.Stop()
|
||||
|
||||
req := c.NewRequest(name, "Test.Method", &TestRequest{IsError: false}, client.WithContentType("application/json"))
|
||||
req := c.NewRequest(name, "Test.Method", &TestRequest{IsError: false}, client.RequestContentType("application/json"))
|
||||
rsp := TestResponse{}
|
||||
|
||||
assert.NoError(t, c.Call(context.TODO(), req, &rsp))
|
||||
|
||||
req = c.NewRequest(name, "Test.Method", &TestRequest{IsError: true}, client.WithContentType("application/json"))
|
||||
req = c.NewRequest(name, "Test.Method", &TestRequest{IsError: true}, client.RequestContentType("application/json"))
|
||||
assert.Error(t, c.Call(context.TODO(), req, &rsp))
|
||||
|
||||
list, _ := prometheus.DefaultGatherer.Gather()
|
||||
|
@@ -117,7 +117,7 @@ func TestClient(t *testing.T) {
|
||||
ctx, span, err := otwrapper.StartSpanFromOutgoingContext(context.Background(), tracer, "root")
|
||||
assert.NoError(err)
|
||||
|
||||
req := c.NewRequest(serverName, "Test.Method", &TestRequest{IsError: tt.isError}, client.WithContentType("application/json"))
|
||||
req := c.NewRequest(serverName, "Test.Method", &TestRequest{IsError: tt.isError}, client.RequestContentType("application/json"))
|
||||
rsp := TestResponse{}
|
||||
err = c.Call(ctx, req, &rsp)
|
||||
if tt.isError {
|
||||
|
Reference in New Issue
Block a user