pull/2656/head
fatedier 3 years ago
parent bf06e3b107
commit cbdd73b94f

@ -113,7 +113,7 @@ func (e *RequestExpect) Ensure(fns ...EnsureFunc) {
if !bytes.Equal(e.expectResp, ret.Content) { if !bytes.Equal(e.expectResp, ret.Content) {
flog.Trace("Response info: %+v", ret) flog.Trace("Response info: %+v", ret)
} }
ExpectEqualValuesWithOffset(1, e.expectResp, ret.Content, e.explain...) ExpectEqualValuesWithOffset(1, ret.Content, e.expectResp, e.explain...)
} else { } else {
for _, fn := range fns { for _, fn := range fns {
ok := fn(ret) ok := fn(ret)

Loading…
Cancel
Save