mirror of https://github.com/apache/nifi.git
Fix for unit tests that are causing build failures in certain environments
This commit is contained in:
parent
2b062e211f
commit
d7da04209a
|
@ -154,8 +154,7 @@ public class JMSPublisherConsumerTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test(timeout = 20000)
|
||||||
@Test(timeout = 2000000)
|
|
||||||
public void testMultipleThreads() throws Exception {
|
public void testMultipleThreads() throws Exception {
|
||||||
String destinationName = "testQueue";
|
String destinationName = "testQueue";
|
||||||
JmsTemplate publishTemplate = CommonTest.buildJmsTemplateForDestination(false);
|
JmsTemplate publishTemplate = CommonTest.buildJmsTemplateForDestination(false);
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class PublishJMSTest {
|
||||||
assertEquals("cooQueue", ((Queue) message.getJMSReplyTo()).getQueueName());
|
assertEquals("cooQueue", ((Queue) message.getJMSReplyTo()).getQueueName());
|
||||||
assertEquals("foo", message.getStringProperty("foo"));
|
assertEquals("foo", message.getStringProperty("foo"));
|
||||||
|
|
||||||
runner.run(1, true); // Run once just so that we can trigger the shutdown of the Connection Factory
|
runner.run(1, true, false); // Run once just so that we can trigger the shutdown of the Connection Factory
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -111,7 +111,7 @@ public class PublishJMSTest {
|
||||||
assertEquals("cooQueue", ((Queue) message.getJMSReplyTo()).getQueueName());
|
assertEquals("cooQueue", ((Queue) message.getJMSReplyTo()).getQueueName());
|
||||||
assertEquals("foo", message.getStringProperty("foo"));
|
assertEquals("foo", message.getStringProperty("foo"));
|
||||||
|
|
||||||
runner.run(1, true); // Run once just so that we can trigger the shutdown of the Connection Factory
|
runner.run(1, true, false); // Run once just so that we can trigger the shutdown of the Connection Factory
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue