mirror of https://github.com/apache/activemq.git
Fix the test so that there's time for the Ack to be processed before the connection is closed otherwise it can be missed. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1232457 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
221da8bcd2
commit
5774d004f8
|
@ -753,6 +753,11 @@ public class StompTest extends CombinationTestSupport {
|
|||
StompFrame ack = new StompFrame("ACK", ackHeaders);
|
||||
stompConnection.sendFrame(ack.format());
|
||||
|
||||
// Need some time for the Ack to get processed.
|
||||
waitForFrameToTakeEffect();
|
||||
|
||||
frame = "DISCONNECT\n" + "\n\n" + Stomp.NULL;
|
||||
stompConnection.sendFrame(frame);
|
||||
|
||||
stompDisconnect();
|
||||
|
||||
|
|
Loading…
Reference in New Issue