修改测试接口校验
This commit is contained in:
parent
c87bca9004
commit
7c940dfcfc
@ -172,7 +172,7 @@ func (r *Robot) handleReq() {
|
|||||||
delete(r.builderMap, b.id)
|
delete(r.builderMap, b.id)
|
||||||
zlog.Errorf("send to client err:%v", err)
|
zlog.Errorf("send to client err:%v", err)
|
||||||
}
|
}
|
||||||
b.requested = true
|
|
||||||
|
|
||||||
r.handleRsp(b.id)
|
r.handleRsp(b.id)
|
||||||
}
|
}
|
||||||
@ -233,10 +233,9 @@ func (r *Robot) handleRsp(id string) {
|
|||||||
r.handleNotify(uuid, msg)
|
r.handleNotify(uuid, msg)
|
||||||
if v, ok := r.builderMap[uuid]; ok {
|
if v, ok := r.builderMap[uuid]; ok {
|
||||||
|
|
||||||
// if v.enabled &&
|
if v.enabled &&
|
||||||
// (msg.MainType == v.mainType &&
|
(msg.MainType == v.mainType &&
|
||||||
// msg.SubType == v.subType) &&
|
msg.SubType == v.subType) {
|
||||||
// v.requested {
|
|
||||||
|
|
||||||
v.hs = time.Since(v.start)
|
v.hs = time.Since(v.start)
|
||||||
if !comm.ProtoUnmarshal(msg, v.rsp) {
|
if !comm.ProtoUnmarshal(msg, v.rsp) {
|
||||||
@ -266,7 +265,7 @@ func (r *Robot) handleRsp(id string) {
|
|||||||
}
|
}
|
||||||
r.caseSuccess++
|
r.caseSuccess++
|
||||||
}
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *Robot) findTestCase(msg *pb.UserMessage) (string, bool) {
|
func (r *Robot) findTestCase(msg *pb.UserMessage) (string, bool) {
|
||||||
|
Loading…
Reference in New Issue
Block a user