AMQ-7497 - tidy up test cleanup for random order runs

This commit is contained in:
gtully 2020-06-11 19:55:38 +01:00
parent ed41101755
commit a7b06c043c
1 changed files with 4 additions and 0 deletions

View File

@ -99,6 +99,7 @@ public class ActiveMQConnectionFactoryTest {
assertEquals(0, ((ActiveMQTopicSubscriber) sub).getPrefetchNumber());
con.close();
ra.stop();
}
@Test(timeout = 60000)
@ -167,6 +168,7 @@ public class ActiveMQConnectionFactoryTest {
// should recover ok
assertEquals("no pending transactions", 0, resources[0].recover(100).length);
ra.stop();
} finally {
brokerService.stop();
}
@ -214,6 +216,8 @@ public class ActiveMQConnectionFactoryTest {
// should recover ok
assertEquals("no pending transactions", 0, resources[0].recover(100).length);
ra.stop();
} finally {
brokerService.stop();
}