From 57a323f7002503bb9694ab1669c1e2756ee5572a Mon Sep 17 00:00:00 2001 From: Nikolay Bondarenko Date: Fri, 25 Jan 2019 18:13:12 +0300 Subject: [PATCH] Remove service register/deregister in prometheus wrapper --- prometheus_test.go | 5 ----- 1 file changed, 5 deletions(-) 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() }