mirror of https://github.com/apache/activemq.git
Added timeout for AMQ-4877
This commit is contained in:
parent
6540f04a40
commit
0ed2ddb3df
|
@ -60,14 +60,12 @@ public class QueueMbeanRestartTest extends TestSupport {
|
|||
this.persistenceAdapterChoice = choice;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
topic = false;
|
||||
super.setUp();
|
||||
}
|
||||
|
||||
@Override
|
||||
@After
|
||||
public void tearDown() throws Exception {
|
||||
super.tearDown();
|
||||
|
@ -89,6 +87,7 @@ public class QueueMbeanRestartTest extends TestSupport {
|
|||
private void restartBroker() throws Exception {
|
||||
broker.stop();
|
||||
broker.waitUntilStopped();
|
||||
Thread.sleep(5 * 1000);
|
||||
createBroker(false);
|
||||
broker.waitUntilStarted();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue