RoleAction_test.go 416 Bytes
package action

import (
	"fmt"
	"math/rand"
	"pro2d/common"
	"pro2d/common/db/redisproxy"
	"pro2d/common/logger"
	"testing"
)

func TestGetActionMap(t *testing.T) {
	rand.Seed(common.Timex())

	var redisConf = common.GlobalSconf.RedisConf
	if err := redisproxy.ConnectRedis(redisConf.DB, redisConf.Auth, redisConf.Address); err != nil {
		logger.Error(err)
		return
	}
	name := getRandomName()
	fmt.Println(name)
}