lib/datadog/ci/contrib/minitest/test.rb in datadog-ci-1.4.1 vs lib/datadog/ci/contrib/minitest/test.rb in datadog-ci-1.5.0

- old
+ new

@@ -49,9 +49,13 @@ def after_teardown test_span = test_visibility_component.active_test return super unless test_span finish_with_result(test_span, result_code) + + # remove failures if test passed at least once on retries + self.failures = [] if test_span.any_retry_passed? + if Helpers.parallel?(self.class) finish_with_result(test_span.test_suite, result_code) end super