- Timestamp2Time Errorf when timestamp is in millisecond.

This commit is contained in:
gazebo
2018-08-08 14:35:06 +08:00
parent 323532d781
commit 9824d8b9fd
3 changed files with 8 additions and 4 deletions

View File

@@ -3,7 +3,6 @@ package routinepool
import (
"math/rand"
"testing"
"time"
"git.rosy.net.cn/baseapi"
"go.uber.org/zap"
@@ -19,7 +18,7 @@ func init() {
logger, _ := zap.NewDevelopment()
sugarLogger = logger.Sugar()
baseapi.Init(sugarLogger)
rand.Seed(time.Now().Unix())
rand.Seed(utils.GetCurTimestamp())
}
func TestCallFun(t *testing.T) {