From fd8eb72e9c7c55365fd6c9b49131b572d7b362e4 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Fri, 25 Jan 2019 16:12:57 +0000 Subject: [PATCH] Update prometheus_test.go --- prometheus_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus_test.go b/prometheus_test.go index 9a33c4e..c9943e6 100644 --- a/prometheus_test.go +++ b/prometheus_test.go @@ -68,13 +68,13 @@ func TestPrometheusMetrics(t *testing.T) { list, _ := prometheus.DefaultGatherer.Gather() - metric := findMetricByName(list, dto.MetricType_SUMMARY, "micro_request_durations_microseconds") + metric := findMetricByName(list, dto.MetricType_SUMMARY, "micro_request_duration_microseconds") assert.Equal(t, *metric.Metric[0].Label[0].Name, "method") assert.Equal(t, *metric.Metric[0].Label[0].Value, "Test.Method") assert.Equal(t, *metric.Metric[0].Summary.SampleCount, uint64(2)) assert.True(t, *metric.Metric[0].Summary.SampleSum > 0) - metric = findMetricByName(list, dto.MetricType_COUNTER, "micro_requests_total") + metric = findMetricByName(list, dto.MetricType_COUNTER, "micro_request_total") assert.Equal(t, *metric.Metric[0].Label[0].Name, "method") assert.Equal(t, *metric.Metric[0].Label[0].Value, "Test.Method")