Author: asmuts
Date: Fri Sep 22 11:27:05 2006
New Revision: 449035

URL: http://svn.apache.org/viewvc?view=rev&rev=449035
Log:
added a sleep at least to this unit tests, since it sometimes fails on windows

Modified:
    
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCacheOptimizationUnitTest.java

Modified: 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCacheOptimizationUnitTest.java
URL: 
http://svn.apache.org/viewvc/jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCacheOptimizationUnitTest.java?view=diff&rev=449035&r1=449034&r2=449035
==============================================================================
--- 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCacheOptimizationUnitTest.java
 (original)
+++ 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/disk/indexed/IndexedDiskCacheOptimizationUnitTest.java
 Fri Sep 22 11:27:05 2006
@@ -3,6 +3,7 @@
 import junit.framework.TestCase;

 

 import org.apache.jcs.engine.behavior.ICacheElement;

+import org.apache.jcs.utils.timing.SleepUtil;

 

 /**

  * @author Aaron Smuts

@@ -53,6 +54,8 @@
         Thread.sleep( 500 );

         Thread.yield();

         Thread.sleep( 500 );

+        SleepUtil.sleepAtLeast( 750 );

+        

         long sizeAfterRemove = disk.getDataFileSize();

         System.out.println( "file sizeAfterRemove " + sizeAfterRemove );

         long expectedSizeAfterRemove = DiskTestObjectUtil.totalSize( elements, 
removeCount, elements.length );




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to