mirror of https://github.com/apache/activemq.git
AMQ-7497 - tidy up test cleanup for random order runs
This commit is contained in:
parent
ed41101755
commit
a7b06c043c
|
@ -99,6 +99,7 @@ public class ActiveMQConnectionFactoryTest {
|
||||||
assertEquals(0, ((ActiveMQTopicSubscriber) sub).getPrefetchNumber());
|
assertEquals(0, ((ActiveMQTopicSubscriber) sub).getPrefetchNumber());
|
||||||
|
|
||||||
con.close();
|
con.close();
|
||||||
|
ra.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(timeout = 60000)
|
@Test(timeout = 60000)
|
||||||
|
@ -167,6 +168,7 @@ public class ActiveMQConnectionFactoryTest {
|
||||||
// should recover ok
|
// should recover ok
|
||||||
assertEquals("no pending transactions", 0, resources[0].recover(100).length);
|
assertEquals("no pending transactions", 0, resources[0].recover(100).length);
|
||||||
|
|
||||||
|
ra.stop();
|
||||||
} finally {
|
} finally {
|
||||||
brokerService.stop();
|
brokerService.stop();
|
||||||
}
|
}
|
||||||
|
@ -214,6 +216,8 @@ public class ActiveMQConnectionFactoryTest {
|
||||||
// should recover ok
|
// should recover ok
|
||||||
assertEquals("no pending transactions", 0, resources[0].recover(100).length);
|
assertEquals("no pending transactions", 0, resources[0].recover(100).length);
|
||||||
|
|
||||||
|
ra.stop();
|
||||||
|
|
||||||
} finally {
|
} finally {
|
||||||
brokerService.stop();
|
brokerService.stop();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue