Author: bodewig
Date: Tue Jan  6 05:38:51 2009
New Revision: 731937

URL: http://svn.apache.org/viewvc?rev=731937&view=rev
Log:
sleep a little longer during tests

Modified:
    
ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/ReplaceTest.java
    
ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/ReplaceRegExpTest.java

Modified: 
ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/ReplaceTest.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/ReplaceTest.java?rev=731937&r1=731936&r2=731937&view=diff
==============================================================================
--- 
ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/ReplaceTest.java 
(original)
+++ 
ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/ReplaceTest.java 
Tue Jan  6 05:38:51 2009
@@ -79,7 +79,7 @@
         executeTarget("lastModifiedSetup");
         String tmpdir = project.getProperty("tmp.dir");
         long ts1 = new File(tmpdir, "test.txt").lastModified();
-        Thread.sleep(2);
+        Thread.sleep(3000);
         executeTarget("testNoPreserve");
         assertTrue(ts1 < new File(tmpdir, "test.txt").lastModified());
     }
@@ -88,7 +88,7 @@
         executeTarget("lastModifiedSetup");
         String tmpdir = project.getProperty("tmp.dir");
         long ts1 = new File(tmpdir, "test.txt").lastModified();
-        Thread.sleep(2);
+        Thread.sleep(3000);
         executeTarget("testPreserve");
         assertTrue(ts1 == new File(tmpdir, "test.txt").lastModified());
     }

Modified: 
ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/ReplaceRegExpTest.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/ReplaceRegExpTest.java?rev=731937&r1=731936&r2=731937&view=diff
==============================================================================
--- 
ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/ReplaceRegExpTest.java
 (original)
+++ 
ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/optional/ReplaceRegExpTest.java
 Tue Jan  6 05:38:51 2009
@@ -106,7 +106,7 @@
         executeTarget("lastModifiedSetup");
         String tmpdir = project.getProperty("tmpregexp");
         long ts1 = new File(tmpdir, "test.txt").lastModified();
-        Thread.sleep(2);
+        Thread.sleep(3000);
         executeTarget("testNoPreserve");
         assertTrue(ts1 < new File(tmpdir, "test.txt").lastModified());
     }
@@ -115,7 +115,7 @@
         executeTarget("lastModifiedSetup");
         String tmpdir = project.getProperty("tmpregexp");
         long ts1 = new File(tmpdir, "test.txt").lastModified();
-        Thread.sleep(2);
+        Thread.sleep(3000);
         executeTarget("testPreserve");
         assertTrue(ts1 == new File(tmpdir, "test.txt").lastModified());
     }


Reply via email to