diff --git a/prometheus_test.go b/prometheus_test.go index ecaa0da..5c2948c 100644 --- a/prometheus_test.go +++ b/prometheus_test.go @@ -56,10 +56,6 @@ func TestPrometheusMetrics(t *testing.T) { t.Fatalf("Unexpected error starting server: %v", err) } - if err := s.Register(); err != nil { - t.Fatalf("Unexpected error registering server: %v", err) - } - req := c.NewRequest(name, "Test.Method", &TestRequest{IsError: false}, client.WithContentType("application/json")) rsp := TestResponse{} @@ -90,7 +86,6 @@ func TestPrometheusMetrics(t *testing.T) { assert.Equal(t, *metric.Metric[1].Label[1].Value, "success") assert.Equal(t, *metric.Metric[1].Counter.Value, float64(1)) - s.Deregister() s.Stop() }