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 2020/05/24 22:15:33 UTC

[maven-surefire] branch SUREFIRE-1733 updated: more reliable test on Jenkins

This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/SUREFIRE-1733 by this push:
     new a9ba0ed  more reliable test on Jenkins
a9ba0ed is described below

commit a9ba0ed7f025221b9a2653296b034eb768be6a4e
Author: tibordigana <ti...@apache.org>
AuthorDate: Mon May 25 00:15:23 2020 +0200

    more reliable test on Jenkins
---
 .../maven/plugin/surefire/booterclient/ForkConfigurationTest.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/ForkConfigurationTest.java b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/ForkConfigurationTest.java
index b3bbf6b..bfc947e 100644
--- a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/ForkConfigurationTest.java
+++ b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/ForkConfigurationTest.java
@@ -164,7 +164,7 @@ public class ForkConfigurationTest
         assertThat( cliAsString )
             .contains( "arg1" );
 
-        int beginOfFileArg = cliAsString.indexOf( '@' );
+        int beginOfFileArg = cliAsString.indexOf( '@', cliAsString.lastIndexOf( "arg1" ) );
         assertThat( beginOfFileArg ).isPositive();
         int endOfFileArg = cliAsString.indexOf( '"', beginOfFileArg );
         if ( endOfFileArg == -1 )