Finish all the i18n things of code.
This commit is contained in:
@ -2,6 +2,7 @@ package test
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/eyebluecn/tank/code/core"
|
||||
"github.com/eyebluecn/tank/code/tool/util"
|
||||
"github.com/robfig/cron"
|
||||
"log"
|
||||
@ -17,7 +18,6 @@ func TestHello(t *testing.T) {
|
||||
|
||||
}
|
||||
|
||||
//测试cron表达式
|
||||
func TestCron(t *testing.T) {
|
||||
|
||||
i := 0
|
||||
@ -34,12 +34,10 @@ func TestCron(t *testing.T) {
|
||||
|
||||
c.Start()
|
||||
|
||||
//当前线程阻塞 20s
|
||||
time.Sleep(3 * time.Second)
|
||||
|
||||
}
|
||||
|
||||
//测试 时间
|
||||
func TestDayAgo(t *testing.T) {
|
||||
|
||||
dayAgo := time.Now()
|
||||
@ -50,10 +48,3 @@ func TestDayAgo(t *testing.T) {
|
||||
fmt.Printf("%s\n", util.ConvertTimeToDateTimeString(thenDay))
|
||||
|
||||
}
|
||||
|
||||
//测试 打包
|
||||
func TestZip(t *testing.T) {
|
||||
|
||||
util.Zip("/Users/fusu/d/group/eyeblue/tank/tmp/matter/admin/root/morning", "/Users/fusu/d/group/eyeblue/tank/tmp/log/morning.zip")
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user