1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-16 18:20:56 +00:00

toolbox: fix the test case

This commit is contained in:
astaxie 2014-08-15 00:14:30 +08:00
parent 84a4379f0d
commit 7d1b03ee5d

View File

@ -10,7 +10,6 @@
package toolbox package toolbox
import ( import (
"os"
"testing" "testing"
"time" "time"
) )
@ -23,5 +22,5 @@ func TestStatics(t *testing.T) {
StatisticsMap.AddStatistics("POST", "/api/user/astaxie", "&admin.user", time.Duration(12000)) StatisticsMap.AddStatistics("POST", "/api/user/astaxie", "&admin.user", time.Duration(12000))
StatisticsMap.AddStatistics("POST", "/api/user/xiemengjun", "&admin.user", time.Duration(13000)) StatisticsMap.AddStatistics("POST", "/api/user/xiemengjun", "&admin.user", time.Duration(13000))
StatisticsMap.AddStatistics("DELETE", "/api/user", "&admin.user", time.Duration(1400)) StatisticsMap.AddStatistics("DELETE", "/api/user", "&admin.user", time.Duration(1400))
StatisticsMap.GetMap(os.Stdout) t.Log(StatisticsMap.GetMap())
} }