update unittests.

This commit is contained in:
徐聪
2022-01-19 20:51:00 +08:00
parent ee5e8a971c
commit 30f77d1ff8
2 changed files with 13 additions and 19 deletions
+1 -6
View File
@@ -148,7 +148,7 @@ func (s *requestStats) collectReportData() map[string]interface{} {
"failed": s.transactionFailed,
}
data["stats"] = s.serializeStats()
data["stats_total"] = s.total.getReport()
data["stats_total"] = s.total.serialize()
data["errors"] = s.serializeErrors()
s.errors = make(map[string]*statsError)
return data
@@ -294,11 +294,6 @@ func (s *statsEntry) getStrippedReport() map[string]interface{} {
return report
}
func (s *statsEntry) getReport() map[string]interface{} {
report := s.serialize()
return report
}
type statsError struct {
name string
method string