maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tibordig...@apache.org
Subject [maven-surefire] 02/02: Fix rerun its failure, records cleared at wrong time
Date Tue, 01 Oct 2019 16:52:57 GMT
This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch SUREFIRE-1584
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 330eb65a680c3b9e00c45627e764860abaa12a89
Author: Col-E <mcoley2@gmu.edu>
AuthorDate: Tue Oct 1 11:34:45 2019 -0400

    Fix rerun its failure, records cleared at wrong time
---
 .../org/apache/maven/surefire/junitplatform/RunListenerAdapter.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java
b/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java
index 9e00f83..5004f26 100644
--- a/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java
+++ b/surefire-providers/surefire-junit-platform/src/main/java/org/apache/maven/surefire/junitplatform/RunListenerAdapter.java
@@ -60,6 +60,7 @@ final class RunListenerAdapter
     public void testPlanExecutionStarted( TestPlan testPlan )
     {
         this.testPlan = testPlan;
+        failures.clear();
     }
 
     @Override
@@ -67,7 +68,6 @@ final class RunListenerAdapter
     {
         this.testPlan = null;
         testStartTime.clear();
-        failures.clear();
     }
 
     @Override


Mime
View raw message