wait a bit for assigment to start in test

This commit is contained in:
kimchy 2010-02-25 18:45:55 +02:00
parent 70726b268f
commit 3ef36737f7
1 changed files with 2 additions and 0 deletions

View File

@ -89,6 +89,7 @@ public class IndexLifecycleActionTests extends AbstractServersTests {
logger.info("Starting server2");
// start another server
startServer("server2", settings);
Thread.sleep(200);
ClusterService clusterService2 = ((InternalServer) server("server2")).injector().getInstance(ClusterService.class);
@ -112,6 +113,7 @@ public class IndexLifecycleActionTests extends AbstractServersTests {
logger.info("Starting server3");
// start another server
startServer("server3", settings);
Thread.sleep(200);
ClusterService clusterService3 = ((InternalServer) server("server3")).injector().getInstance(ClusterService.class);