Author: asmuts
Date: Fri Sep 22 11:28:54 2006
New Revision: 449037

URL: http://svn.apache.org/viewvc?view=rev&rev=449037
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/lateral/socket/tcp/TestTCPLateralUnitTest.java

Modified: 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestTCPLateralUnitTest.java
URL: 
http://svn.apache.org/viewvc/jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestTCPLateralUnitTest.java?view=diff&rev=449037&r1=449036&r2=449037
==============================================================================
--- 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestTCPLateralUnitTest.java
 (original)
+++ 
jakarta/jcs/trunk/src/test/org/apache/jcs/auxiliary/lateral/socket/tcp/TestTCPLateralUnitTest.java
 Fri Sep 22 11:28:54 2006
@@ -10,6 +10,7 @@
 import org.apache.jcs.engine.behavior.ICompositeCacheManager;
 import org.apache.jcs.engine.control.CompositeCacheManager;
 import org.apache.jcs.engine.control.CompositeCacheManagerMockImpl;
+import org.apache.jcs.utils.timing.SleepUtil;
 
 /**
  * Basic unit tests for the sending and receiving portions of the lateral 
cache.
@@ -67,7 +68,7 @@
             lur.send( led );
         }
 
-        Thread.sleep( numMes );
+        SleepUtil.sleepAtLeast( numMes );
 
         System.out.println( "PutCount = " + listener.getPutCnt() );
         assertEquals( "Should have received " + numMes + " by now.", numMes, 
listener.getPutCnt() );



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

Reply via email to