mirror of https://github.com/apache/activemq.git
make test a little more deterministic and simplify failure check
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1164056 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bb2f0db7b8
commit
588a3c3594
|
@ -127,7 +127,7 @@ public class SoWriteTimeoutTest extends JmsTestSupport {
|
||||||
//dumpAllThreads("blocked on write");
|
//dumpAllThreads("blocked on write");
|
||||||
|
|
||||||
// abort should be done after this
|
// abort should be done after this
|
||||||
TimeUnit.SECONDS.sleep(4);
|
TimeUnit.SECONDS.sleep(10);
|
||||||
|
|
||||||
proxy.goOn();
|
proxy.goOn();
|
||||||
|
|
||||||
|
@ -137,8 +137,8 @@ public class SoWriteTimeoutTest extends JmsTestSupport {
|
||||||
|
|
||||||
// verify connection is dead
|
// verify connection is dead
|
||||||
try {
|
try {
|
||||||
for (int i=0; i<10; i++) {
|
for (int i=0; i<100; i++) {
|
||||||
stompConnection.send("/queue/" + dest.getPhysicalName(), messageTextPrefix + "ReplyText" + i);
|
stompConnection.send("/queue/" + dest.getPhysicalName(), "ShouldBeDeadConnectionText" + i);
|
||||||
}
|
}
|
||||||
fail("expected send to fail with timeout out connection");
|
fail("expected send to fail with timeout out connection");
|
||||||
} catch (SocketException expected) {
|
} catch (SocketException expected) {
|
||||||
|
|
Loading…
Reference in New Issue