You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2019/10/01 16:52:57 UTC
[maven-surefire] 02/02: Fix rerun its failure,
records cleared at wrong time
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 <mc...@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