mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 01:41:00 +00:00
fix UT
This commit is contained in:
parent
e1386c448c
commit
3ab1e48217
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user