hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r832166 - /httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/impl/nio/reactor/TestDefaultListeningIOReactor.java
Date Mon, 02 Nov 2009 22:37:28 GMT
Author: olegk
Date: Mon Nov  2 22:37:27 2009
New Revision: 832166

URL: http://svn.apache.org/viewvc?rev=832166&view=rev
Log:
Prevent the test case from failing on slow systems

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/impl/nio/reactor/TestDefaultListeningIOReactor.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/impl/nio/reactor/TestDefaultListeningIOReactor.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/impl/nio/reactor/TestDefaultListeningIOReactor.java?rev=832166&r1=832165&r2=832166&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/impl/nio/reactor/TestDefaultListeningIOReactor.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/test/java/org/apache/http/impl/nio/reactor/TestDefaultListeningIOReactor.java
Mon Nov  2 22:37:27 2009
@@ -59,9 +59,6 @@
 
 /**
  * Basic tests for {@link DefaultListeningIOReactor}.
- *
- * 
- * @version $Id$
  */
 public class TestDefaultListeningIOReactor extends TestCase {
 
@@ -197,7 +194,7 @@
 
         // I/O reactor is now expected to be shutting down
         latch.await(2000, TimeUnit.MILLISECONDS);
-        assertEquals(IOReactorStatus.SHUT_DOWN, ioreactor.getStatus());
+        assertTrue(ioreactor.getStatus().compareTo(IOReactorStatus.SHUTTING_DOWN) >= 0);
         
         Set<ListenerEndpoint> endpoints = ioreactor.getEndpoints();
         assertNotNull(endpoints);



Mime
View raw message