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