need to ensure at least one consumer cycle to ensure the redelivery flag is set. 

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1437691 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2013-01-23 20:09:43 +00:00
parent 0dfa5f483c
commit 2dd8b61a4b
1 changed files with 1 additions and 3 deletions

View File

@ -1558,7 +1558,6 @@ public class DurableSubscriptionOfflineTest extends org.apache.activemq.TestSupp
}
}
public void testRedeliveryFlag() throws Exception {
Connection con;
@ -1625,7 +1624,7 @@ public class DurableSubscriptionOfflineTest extends org.apache.activemq.TestSupp
con.close();
// peek all
for (int j = 0; j < random.nextInt(10); j++) {
for (int j = -1; j < random.nextInt(10); j++) {
con = createConnection(clientId);
session = con.createSession(false, Session.CLIENT_ACKNOWLEDGE);
consumer = session.createDurableSubscriber(topic, "SubsId", "filter = 'true'", true);
@ -1638,7 +1637,6 @@ public class DurableSubscriptionOfflineTest extends org.apache.activemq.TestSupp
con.close();
}
// consume remaining
con = createConnection(clientId);
session = con.createSession(false, Session.CLIENT_ACKNOWLEDGE);