-
Notifications
You must be signed in to change notification settings - Fork 124
Assert no errors are in pipeline tests #290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/test |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪 |
@@ -311,6 +311,11 @@ func verifyDynamicFields(result *testResult, config *testConfig) error { | |||
func verifyFieldsInTestResult(result *testResult, fieldsValidator *fields.Validator) error { | |||
var multiErr multierror.Error | |||
for _, event := range result.events { | |||
err := checkErrorMessage(event) | |||
if err != nil { | |||
multiErr = append(multiErr, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we continue
here? IOW, should we check fields in the event if we find the error.message
field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... maybe you're right. Actually all other fields can be wrong, e.g. should be removed but weren't due to an error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
/test |
Issue: #281