Use smart client in busy waiting loop

This test fails since we use random transport clients. Let's see
if it stabelizes with a smart client in the loop and debug further
if it helps.
This commit is contained in:
Simon Willnauer 2013-10-13 23:05:40 +02:00
parent 5f1efba28c
commit 529b9c8b39
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public class QuorumLocalGatewayTests extends AbstractIntegrationTest {
assertThat(awaitBusy(new Predicate<Object>() {
@Override
public boolean apply(Object input) {
ClusterStateResponse clusterStateResponse = client().admin().cluster().prepareState().setMasterNodeTimeout("500ms").get();
ClusterStateResponse clusterStateResponse = cluster().smartClient().admin().cluster().prepareState().setMasterNodeTimeout("500ms").get();
return !clusterStateResponse.getState().routingTable().index("test").allPrimaryShardsActive();
}
}, 30, TimeUnit.SECONDS), equalTo(true));