[jboss-cvs] JBossAS SVN: r87275 - 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
Tue Apr 14 08:10:43 EDT 2009


Author: alesj
Date: 2009-04-14 08:10:43 -0400 (Tue, 14 Apr 2009)
New Revision: 87275

Modified:
   projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/SynchModificationTestCase.java
Log:
Sleep before checker.

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-14 11:56:30 UTC (rev 87274)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/SynchModificationTestCase.java	2009-04-14 12:10:43 UTC (rev 87275)
@@ -116,6 +116,8 @@
          @SuppressWarnings("deprecation")
          VirtualFile testJsp = tempRoot.findChild("test.jsp");
          long tempTimestamp = testJsp.getLastModified();
+         // Platform dependent precision for last modified, let's wait a minimum of 1 sec
+         Thread.sleep(1500l);
          assertFalse(checker.hasStructureBeenModified(originalRoot));
          long lastModified = testJsp.getLastModified();
          long diff = lastModified - tempTimestamp;
@@ -130,6 +132,8 @@
          @SuppressWarnings("deprecation")
          VirtualFile tempProps = tempRoot.findChild("WEB-INF/classes/some.properties");
          tempTimestamp = tempProps.getLastModified();
+         // Platform dependent precision for last modified, let's wait a minimum of 1 sec
+         Thread.sleep(1500l);
          assertFalse(checker.hasStructureBeenModified(originalRoot));
          assertEquals(tempTimestamp, tempProps.getLastModified());
 




More information about the jboss-cvs-commits mailing list