mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2507 - improving test, avoiding false positives
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@904468 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
17cc428b21
commit
fed9ac7955
|
@ -55,7 +55,9 @@ public class JmsTimeoutTest extends EmbeddedBrokerTestSupport {
|
|||
logger.info("Done sending..");
|
||||
} catch (JMSException e) {
|
||||
e.printStackTrace();
|
||||
if (e instanceof ResourceAllocationException) {
|
||||
exceptionCount.incrementAndGet();
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -66,7 +68,7 @@ public class JmsTimeoutTest extends EmbeddedBrokerTestSupport {
|
|||
producerThread.join(30000);
|
||||
cx.close();
|
||||
// We should have a few timeout exceptions as memory store will fill up
|
||||
assertTrue(exceptionCount.get() > 0);
|
||||
assertTrue("No exception from the broker", exceptionCount.get() > 0);
|
||||
}
|
||||
|
||||
protected void setUp() throws Exception {
|
||||
|
|
Loading…
Reference in New Issue