Remove DiscoveryNodes#localNode in favour of existing DiscoveryNodes#getLocalNode

Original commit: elastic/x-pack-elasticsearch@fd85aa2325
This commit is contained in:
javanna 2016-03-30 15:18:29 +02:00 committed by Luca Cavanna
parent 716a3e743e
commit 9f87fd5fc7
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ public class NoMasterNodeIT extends AbstractWatcherIntegrationTestCase {
public void run () {
for (Client client : clients()) {
ClusterState state = client.admin().cluster().prepareState().setLocal(true).get().getState();
assertThat("Node [" + state.nodes().localNode() + "] should have a NO_MASTER_BLOCK",
assertThat("Node [" + state.nodes().getLocalNode() + "] should have a NO_MASTER_BLOCK",
state.blocks().hasGlobalBlock(DiscoverySettings.NO_MASTER_BLOCK_ID), is(true));
}
}