You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by st...@apache.org on 2011/07/05 14:53:02 UTC

svn commit: r1143033 - /maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/fromConfiguration/TestUnpackMojo.java

Author: stephenc
Date: Tue Jul  5 12:53:02 2011
New Revision: 1143033

URL: http://svn.apache.org/viewvc?rev=1143033&view=rev
Log:
Test is 1s too brittle on MacOSX getting intermittent failures 1 out of every 5 runs (approx) but all seem to go away by increasing the timestamp differences by 1s

Modified:
    maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/fromConfiguration/TestUnpackMojo.java

Modified: maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/fromConfiguration/TestUnpackMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/fromConfiguration/TestUnpackMojo.java?rev=1143033&r1=1143032&r2=1143033&view=diff
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/fromConfiguration/TestUnpackMojo.java (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/fromConfiguration/TestUnpackMojo.java Tue Jul  5 12:53:02 2011
@@ -517,8 +517,8 @@ public class TestUnpackMojo
         time -= 10000;
         // set to known value
         assertTrue( unpackedFile.setLastModified( time ) );
-        // set source to be newer
-        assertTrue( artifact.getFile().setLastModified( time + 4000 ) );
+        // set source to be newer was 4s but test is brittle on MacOS if less than 5s
+        assertTrue( artifact.getFile().setLastModified( time + 5000 ) );
 
         // manually set markerfile (must match getMarkerFile in DefaultMarkerFileHandler)
         File marker = new File( mojo.getMarkersDirectory(), artifact.getId().replace( ':', '-' ) + ".marker" );