From 3ab1e48217d4e558bbff645591f500ab16000a2a Mon Sep 17 00:00:00 2001 From: Ming Deng Date: Mon, 22 Jun 2020 23:24:15 +0800 Subject: [PATCH] fix UT --- metric/prometheus_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metric/prometheus_test.go b/metric/prometheus_test.go index fd722245..d82a6dec 100644 --- a/metric/prometheus_test.go +++ b/metric/prometheus_test.go @@ -35,7 +35,7 @@ func TestPrometheusMiddleWare(t *testing.T) { }, Method: "POST", } - vec := prometheus.NewSummaryVec(prometheus.SummaryOpts{}, []string{"pattern", "method", "status"}) + vec := prometheus.NewSummaryVec(prometheus.SummaryOpts{}, []string{"pattern", "method", "status", "duration"}) report(time.Second, writer, request, vec) middleware.ServeHTTP(writer, request)