mirror of https://github.com/apache/activemq.git
Adding a little more delay so it works with slower machines.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@643460 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
53756f3c19
commit
bcacddfaad
|
@ -218,7 +218,7 @@ public class JmsTempDestinationTest extends TestCase {
|
|||
// Closing the connection should destroy the temp queue that was
|
||||
// created.
|
||||
tempConnection.close();
|
||||
Thread.sleep(2000); // Wait a little bit to let the delete take effect.
|
||||
Thread.sleep(5000); // Wait a little bit to let the delete take effect.
|
||||
|
||||
// This message delivery NOT should work since the temp connection is
|
||||
// now closed.
|
||||
|
@ -256,7 +256,7 @@ public class JmsTempDestinationTest extends TestCase {
|
|||
|
||||
// deleting the Queue will cause sends to fail
|
||||
queue.delete();
|
||||
Thread.sleep(1000); // Wait a little bit to let the delete take effect.
|
||||
Thread.sleep(5000); // Wait a little bit to let the delete take effect.
|
||||
|
||||
// This message delivery NOT should work since the temp connection is
|
||||
// now closed.
|
||||
|
|
|
@ -91,8 +91,8 @@ public class DurableConsumerTest extends TestCase {
|
|||
consumer = consumerSession.createDurableSubscriber(topic, CONSUMER_NAME);
|
||||
consumerConnection.start();
|
||||
for (int i =0; i < COUNT;i++) {
|
||||
Message msg = consumer.receive(5000);
|
||||
assertNotNull(msg);
|
||||
Message msg = consumer.receive(5000);
|
||||
assertNotNull("Missing message: "+i, msg);
|
||||
if (i != 0 && i%1000==0) {
|
||||
LOG.info("Received msg " + i);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue