maven-wagon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r693437 - in /maven/wagon/trunk: wagon-provider-test/src/main/java/org/apache/maven/wagon/http/HttpWagonTestCase.java wagon-providers/wagon-webdav-jackrabbit/src/test/java/org/apache/maven/wagon/providers/webdav/WebDavWagonTest.java
Date Tue, 09 Sep 2008 11:17:29 GMT
Author: brett
Date: Tue Sep  9 04:17:29 2008
New Revision: 693437

URL: http://svn.apache.org/viewvc?rev=693437&view=rev
Log:
allow tests to pass on Windows

Modified:
    maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/http/HttpWagonTestCase.java
    maven/wagon/trunk/wagon-providers/wagon-webdav-jackrabbit/src/test/java/org/apache/maven/wagon/providers/webdav/WebDavWagonTest.java

Modified: maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/http/HttpWagonTestCase.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/http/HttpWagonTestCase.java?rev=693437&r1=693436&r2=693437&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/http/HttpWagonTestCase.java
(original)
+++ maven/wagon/trunk/wagon-provider-test/src/main/java/org/apache/maven/wagon/http/HttpWagonTestCase.java
Tue Sep  9 04:17:29 2008
@@ -307,7 +307,7 @@
     protected long getExpectedLastModifiedOnGet( Repository repository, Resource resource
)
     {
         File file = new File( getRepositoryDirectory(), resource.getName() );
-        return file.lastModified();
+        return ( file.lastModified() / 1000 ) * 1000;
     }
 
     private File getRepositoryDirectory()

Modified: maven/wagon/trunk/wagon-providers/wagon-webdav-jackrabbit/src/test/java/org/apache/maven/wagon/providers/webdav/WebDavWagonTest.java
URL: http://svn.apache.org/viewvc/maven/wagon/trunk/wagon-providers/wagon-webdav-jackrabbit/src/test/java/org/apache/maven/wagon/providers/webdav/WebDavWagonTest.java?rev=693437&r1=693436&r2=693437&view=diff
==============================================================================
--- maven/wagon/trunk/wagon-providers/wagon-webdav-jackrabbit/src/test/java/org/apache/maven/wagon/providers/webdav/WebDavWagonTest.java
(original)
+++ maven/wagon/trunk/wagon-providers/wagon-webdav-jackrabbit/src/test/java/org/apache/maven/wagon/providers/webdav/WebDavWagonTest.java
Tue Sep  9 04:17:29 2008
@@ -67,7 +67,7 @@
     protected long getExpectedLastModifiedOnGet( Repository repository, Resource resource
)
     {
         File file = new File( getDavRepository(), resource.getName() );
-        return file.lastModified();
+        return ( file.lastModified() / 1000 ) * 1000;
     }
 
     private File getDavRepository()



---------------------------------------------------------------------
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