tackle intermittent ci failure, think possibe all messages are dispatched before pause

This commit is contained in:
gtully 2016-05-06 12:17:07 +01:00
parent 9a35c3731b
commit fc9ad9f023
1 changed files with 1 additions and 5 deletions

View File

@ -120,11 +120,7 @@ public class SoWriteTimeoutTest extends JmsTestSupport {
frame = "SUBSCRIBE\n" + "destination:/queue/" + dest.getQueueName() + "\n" + "ack:client\n\n" + Stomp.NULL;
stompConnection.sendFrame(frame);
// ensure dispatch has started before pause
frame = stompConnection.receiveFrame();
assertTrue(frame.startsWith("MESSAGE"));
proxy.pause();
// writes should back up... writeTimeout will kick in a abort the connection