Skip to content

Commit 41addb9

Browse files
authored
Show ignored fields error as xUnit error (#1945)
1 parent 2a62414 commit 41addb9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/testrunner/runners/system/tester.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -1923,7 +1923,10 @@ func validateIgnoredFields(stackVersionString string, scenario *scenarioTest, co
19231923
return fmt.Errorf("failed to marshal degraded docs to JSON: %w", err)
19241924
}
19251925

1926-
return fmt.Errorf("found ignored fields in data stream %s: %v. Affected documents: %s", scenario.dataStream, ignoredFields, degradedDocsJSON)
1926+
return testrunner.ErrTestCaseFailed{
1927+
Reason: "found ignored fields in data stream",
1928+
Details: fmt.Sprintf("found ignored fields in data stream %s: %v. Affected documents: %s", scenario.dataStream, ignoredFields, degradedDocsJSON),
1929+
}
19271930
}
19281931

19291932
return nil

0 commit comments

Comments
 (0)