maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r662344 - /maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java
Date Mon, 02 Jun 2008 07:00:21 GMT
Author: brett
Date: Mon Jun  2 00:00:20 2008
New Revision: 662344

URL: http://svn.apache.org/viewvc?rev=662344&view=rev
Log:
fix possible problem with timing on the test

Modified:
    maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java

Modified: maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java?rev=662344&r1=662343&r2=662344&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java
(original)
+++ maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/WagonTestCase.java
Mon Jun  2 00:00:20 2008
@@ -247,7 +247,8 @@
             setupRepositories();
             setupWagonTestingFixtures();
             int expectedSize = putFile();
-            getIfNewer( sourceFile.lastModified() + 30000, false, expectedSize );
+            getIfNewer( getExpectedLastModifiedOnGet( testRepository, new Resource( resource
) ) + 30000, false,
+                        expectedSize );
         }
     }
 
@@ -276,7 +277,7 @@
             setupRepositories();
             setupWagonTestingFixtures();
             int expectedSize = putFile();
-            getIfNewer( sourceFile.lastModified(), false, expectedSize );
+            getIfNewer( getExpectedLastModifiedOnGet( testRepository, new Resource( resource
) ), false, expectedSize );
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-commits-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-commits-help@maven.apache.org


Mime
View raw message