Merge branch 'master' into master

This commit is contained in:
debugtalk
2022-04-08 09:38:37 +08:00
committed by GitHub
50 changed files with 1258 additions and 999 deletions
+7 -7
View File
@@ -175,13 +175,13 @@ func (v *responseObject) Validate(iValidators []interface{}, variablesMapping ma
Msgf("validate %s", checkItem)
if !result {
v.t.Fail()
return errors.New(fmt.Sprintf(
"do assertion failed, checkExpr: %v, assertMethod: %v, checkValue: %v, expectValue: %v",
validator.Check,
assertMethod,
checkValue,
expectValue,
))
log.Error().
Str("checkExpr", validator.Check).
Str("assertMethod", assertMethod).
Interface("checkValue", checkValue).
Interface("expectValue", expectValue).
Msg("assert failed")
return errors.New("step validation failed")
}
}
return nil