toolbox: fix the test case
Showing
1 changed file
with
1 additions
and
2 deletions
| ... | @@ -10,7 +10,6 @@ | ... | @@ -10,7 +10,6 @@ |
| 10 | package toolbox | 10 | package toolbox |
| 11 | 11 | ||
| 12 | import ( | 12 | import ( |
| 13 | "os" | ||
| 14 | "testing" | 13 | "testing" |
| 15 | "time" | 14 | "time" |
| 16 | ) | 15 | ) |
| ... | @@ -23,5 +22,5 @@ func TestStatics(t *testing.T) { | ... | @@ -23,5 +22,5 @@ func TestStatics(t *testing.T) { |
| 23 | StatisticsMap.AddStatistics("POST", "/api/user/astaxie", "&admin.user", time.Duration(12000)) | 22 | StatisticsMap.AddStatistics("POST", "/api/user/astaxie", "&admin.user", time.Duration(12000)) |
| 24 | StatisticsMap.AddStatistics("POST", "/api/user/xiemengjun", "&admin.user", time.Duration(13000)) | 23 | StatisticsMap.AddStatistics("POST", "/api/user/xiemengjun", "&admin.user", time.Duration(13000)) |
| 25 | StatisticsMap.AddStatistics("DELETE", "/api/user", "&admin.user", time.Duration(1400)) | 24 | StatisticsMap.AddStatistics("DELETE", "/api/user", "&admin.user", time.Duration(1400)) |
| 26 | StatisticsMap.GetMap(os.Stdout) | 25 | t.Log(StatisticsMap.GetMap()) |
| 27 | } | 26 | } | ... | ... |
-
Please register or sign in to post a comment