Add autofail to prevent test hang

see: https://issues.apache.org/jira/browse/AMQ-3842

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1340275 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2012-05-18 22:05:05 +00:00
parent 53fff528a7
commit fa62da8601
1 changed files with 27 additions and 21 deletions

View File

@ -38,6 +38,12 @@ public class DiscoveryTransportNoBrokerTest extends CombinationTestSupport {
private static final Logger LOG = LoggerFactory.getLogger(DiscoveryTransportNoBrokerTest.class);
@Override
public void setUp() throws Exception {
setAutoFail(true);
super.setUp();
}
public void testNoExtraThreads() throws Exception {
BrokerService broker = new BrokerService();
TransportConnector tcp = broker.addConnector("tcp://localhost:0?transport.closeAsync=false");