Update the Receipts test with a delay to prevent occasional failures.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@906270 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2010-02-03 22:41:06 +00:00
parent 24f73a53c1
commit 3e022d8262
1 changed files with 5 additions and 3 deletions

View File

@ -304,8 +304,10 @@ public class StompTest extends CombinationTestSupport {
assertTrue(frame.startsWith("RECEIPT"));
assertTrue("Receipt contains correct receipt-id", frame.indexOf(Stomp.Headers.Response.RECEIPT_ID) >= 0);
receiver.disconnect();
frame = "DISCONNECT\n" + "\n\n" + Stomp.NULL;
receiver.sendFrame(frame);
waitForFrameToTakeEffect();
MessageConsumer consumer = session.createConsumer(queue);
@ -320,8 +322,8 @@ public class StompTest extends CombinationTestSupport {
assertNotNull(message);
assertNull("JMS Message does not contain receipt request", message.getStringProperty(Stomp.Headers.RECEIPT_REQUESTED));
stompConnection.disconnect();
frame = "DISCONNECT\n" + "\n\n" + Stomp.NULL;
stompConnection.sendFrame(frame);
}
public void testSubscribeWithAutoAck() throws Exception {