Skip to content

Commit

Permalink
Show ignored fields error as xUnit error (#1945)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm authored Jul 4, 2024
1 parent 2a62414 commit 41addb9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/testrunner/runners/system/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,10 @@ func validateIgnoredFields(stackVersionString string, scenario *scenarioTest, co
return fmt.Errorf("failed to marshal degraded docs to JSON: %w", err)
}

return fmt.Errorf("found ignored fields in data stream %s: %v. Affected documents: %s", scenario.dataStream, ignoredFields, degradedDocsJSON)
return testrunner.ErrTestCaseFailed{
Reason: "found ignored fields in data stream",
Details: fmt.Sprintf("found ignored fields in data stream %s: %v. Affected documents: %s", scenario.dataStream, ignoredFields, degradedDocsJSON),
}
}

return nil
Expand Down

0 comments on commit 41addb9

Please sign in to comment.