mirror of https://github.com/apache/activemq.git
The JMSDurableTopicRedeliverTest was failing intermitently.
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@393106 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
700ba75d55
commit
a2ae3a9f8a
|
@ -107,8 +107,8 @@ public class DurableTopicSubscription extends PrefetchSubscription {
|
|||
pending.addFirst(node);
|
||||
} else {
|
||||
node.decrementReferenceCount();
|
||||
iter.remove();
|
||||
}
|
||||
iter.remove();
|
||||
}
|
||||
|
||||
if( !keepDurableSubsActive ) {
|
||||
|
|
|
@ -33,14 +33,13 @@ public class JMSDurableTopicRedeliverTest extends JmsTopicRedeliverTest {
|
|||
super.setUp();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sends and consumes the messages.
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public void testRedeliverNewSession() throws Exception {
|
||||
String text = "TEST";
|
||||
String text = "TEST: "+System.currentTimeMillis();
|
||||
Message sendMessage = session.createTextMessage(text);
|
||||
|
||||
if (verbose) {
|
||||
|
@ -74,6 +73,6 @@ public class JMSDurableTopicRedeliverTest extends JmsTopicRedeliverTest {
|
|||
|
||||
consumeSession = connection.createSession(false, Session.CLIENT_ACKNOWLEDGE);
|
||||
consumer = createConsumer();
|
||||
assertNull(consumer.receiveNoWait());
|
||||
assertNull(consumer.receive(1000));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue