[jboss-cvs] JBossAS SVN: r87157 - projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Apr 10 16:37:10 EDT 2009


Author: alesj
Date: 2009-04-10 16:37:10 -0400 (Fri, 10 Apr 2009)
New Revision: 87157

Modified:
   projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/SynchModificationTestCase.java
Log:
Expose diff in timestamps - seeing some failures on Linux.

Modified: projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/SynchModificationTestCase.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/SynchModificationTestCase.java	2009-04-10 20:36:18 UTC (rev 87156)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/SynchModificationTestCase.java	2009-04-10 20:37:10 UTC (rev 87157)
@@ -117,7 +117,9 @@
          VirtualFile testJsp = tempRoot.findChild("test.jsp");
          long tempTimestamp = testJsp.getLastModified();
          assertFalse(checker.hasStructureBeenModified(originalRoot));
-         assertTrue(tempTimestamp < testJsp.getLastModified());
+         long lastModified = testJsp.getLastModified();
+         long diff = lastModified - tempTimestamp;
+         assertTrue(diff > 0);
 
          // update something outside recurse filter
          VirtualFile someProps = originalRoot.getChild("WEB-INF/classes/some.properties");




More information about the jboss-cvs-commits mailing list