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:
2021-04-10 01:32:25 +03:00
committed by GitHub
parent 66ff08af14
commit 744c2b4af8
10 changed files with 592 additions and 24 deletions

View File

@@ -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()