mirror of https://github.com/apache/activemq.git
Make sure the first consumer is shutdown before moving on.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1442642 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5d9a6b67eb
commit
6b2786a191
|
@ -351,8 +351,12 @@ public class StompTest extends StompTestSupport {
|
|||
assertTrue(frame.startsWith("RECEIPT"));
|
||||
assertTrue("Receipt contains correct receipt-id", frame.indexOf(Stomp.Headers.Response.RECEIPT_ID) >= 0);
|
||||
|
||||
frame = "DISCONNECT\n" + "\n\n" + Stomp.NULL;
|
||||
frame = "DISCONNECT\n" + "receipt: dis-1\n" + "\n\n" + Stomp.NULL;
|
||||
receiver.sendFrame(frame);
|
||||
frame = receiver.receiveFrame();
|
||||
assertTrue(frame.startsWith("RECEIPT"));
|
||||
assertTrue("Receipt contains correct receipt-id", frame.indexOf(Stomp.Headers.Response.RECEIPT_ID) >= 0);
|
||||
receiver.close();
|
||||
|
||||
MessageConsumer consumer = session.createConsumer(queue);
|
||||
|
||||
|
|
Loading…
Reference in New Issue