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:
Timothy A. Bish 2013-02-05 16:07:38 +00:00
parent 5d9a6b67eb
commit 6b2786a191
1 changed files with 5 additions and 1 deletions

View File

@ -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);