activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1164056 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/SoWriteTimeoutTest.java
Date Thu, 01 Sep 2011 12:55:18 GMT
Author: gtully
Date: Thu Sep  1 12:55:18 2011
New Revision: 1164056

URL: http://svn.apache.org/viewvc?rev=1164056&view=rev
Log:
make test a little more deterministic and simplify failure check

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/SoWriteTimeoutTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/SoWriteTimeoutTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/SoWriteTimeoutTest.java?rev=1164056&r1=1164055&r2=1164056&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/SoWriteTimeoutTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/SoWriteTimeoutTest.java
Thu Sep  1 12:55:18 2011
@@ -127,7 +127,7 @@ public class SoWriteTimeoutTest extends 
         //dumpAllThreads("blocked on write");
         
         // abort should be done after this
-        TimeUnit.SECONDS.sleep(4);
+        TimeUnit.SECONDS.sleep(10);
 
         proxy.goOn();
         
@@ -137,8 +137,8 @@ public class SoWriteTimeoutTest extends 
         
         // verify connection is dead
         try {
-            for (int i=0; i<10; i++) {
-                stompConnection.send("/queue/" + dest.getPhysicalName(), messageTextPrefix
+ "ReplyText" + i);
+            for (int i=0; i<100; i++) {
+                stompConnection.send("/queue/" + dest.getPhysicalName(),  "ShouldBeDeadConnectionText"
+ i);
             }
             fail("expected send to fail with timeout out connection");
         } catch (SocketException expected) {



Mime
View raw message