Author: markt
Date: Thu Feb 14 14:01:48 2013
New Revision: 1446181

URL: http://svn.apache.org/r1446181
Log:
Prevent infinite loop on test failure

Modified:
    tomcat/trunk/test/org/apache/tomcat/websocket/TestWsWebSocketContainer.java

Modified: 
tomcat/trunk/test/org/apache/tomcat/websocket/TestWsWebSocketContainer.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/websocket/TestWsWebSocketContainer.java?rev=1446181&r1=1446180&r2=1446181&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/websocket/TestWsWebSocketContainer.java 
(original)
+++ tomcat/trunk/test/org/apache/tomcat/websocket/TestWsWebSocketContainer.java 
Thu Feb 14 14:01:48 2013
@@ -377,11 +377,12 @@ public class TestWsWebSocketContainer ex
         wsSession.addMessageHandler(new BlockingBinaryHandler());
 
         int loops = 0;
-        while (loops < 60) {
+        while (loops < 15) {
             Thread.sleep(1000);
             if (!ConstantTxEndpoint.getRunning()) {
                 break;
             }
+            loops++;
         }
 
         // Check nothing really bad happened



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to