随机昵称

This commit is contained in:
zhaocy 2022-07-12 18:10:01 +08:00
parent 640a8c346c
commit a7ad82c776

View File

@ -49,13 +49,13 @@ func (r *Robot) AccountLogin() {
enabled: true,
next: func(rsp proto.Message, handle func(nextCase *TestCase)) {
if _, ok := rsp.(*pb.UserLoginResp); ok {
nick := randomdata.RandStringRunes(5)
nick := randomdata.SillyName()
handle(&TestCase{
desc: "创角",
mainType: string(comm.ModuleUser),
subType: user.UserSubTypeCreate,
req: &pb.UserCreateReq{ //设置请求参数
NickName: "乐谷" + nick,
NickName: nick,
},
rsp: &pb.UserCreateResp{},
enabled: true,