Remove DiscoveryNodes#localNode in favour of existing DiscoveryNodes#getLocalNode
Original commit: elastic/x-pack-elasticsearch@fd85aa2325
This commit is contained in:
parent
716a3e743e
commit
9f87fd5fc7
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue