Author: tv
Date: Sun Aug 14 18:08:43 2011
New Revision: 1157588

URL: http://svn.apache.org/viewvc?rev=1157588&view=rev
Log:
Document file system-dependent timing

Modified:
    
commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/file/FileDiskCacheUnitTest.java

Modified: 
commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/file/FileDiskCacheUnitTest.java
URL: 
http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/file/FileDiskCacheUnitTest.java?rev=1157588&r1=1157587&r2=1157588&view=diff
==============================================================================
--- 
commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/file/FileDiskCacheUnitTest.java
 (original)
+++ 
commons/proper/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/file/FileDiskCacheUnitTest.java
 Sun Aug 14 18:08:43 2011
@@ -301,7 +301,9 @@ public class FileDiskCacheUnitTest
 
         for ( int i = maxNumberOfFiles - 1; i >= 0; i-- )
         {
-            SleepUtil.sleepAtLeast( 5 );
+            // tv: The Mac file system has 1 sec resolution, so this is the 
minimum value
+            // to make this test work.
+            SleepUtil.sleepAtLeast( 500 );
             ICacheElement ice = diskCache.get( "key" + i );
             assertNotNull("Value of key" + i + " should not be null", ice);
         }


Reply via email to