mirror of https://github.com/apache/activemq.git
Add one fix from: https://issues.apache.org/jira/browse/AMQ-4268
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:
parent
0dfa5f483c
commit
2dd8b61a4b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue