Remove DiscoveryNodes#masterNodeId in favour of existing DiscoveryNodes#getMasterNodeId

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

View File

@ -100,7 +100,7 @@ public class ClusterStateTests extends MarvelIntegTestCase {
logger.debug("--> ensure that the 'nodes' attributes of the cluster state document is not indexed");
assertHitCount(client().prepareSearch().setSize(0)
.setTypes(ClusterStateResolver.TYPE)
.setQuery(matchQuery("cluster_state.nodes." + nodes.masterNodeId() + ".name", nodes.masterNode().getName())).get(), 0L);
.setQuery(matchQuery("cluster_state.nodes." + nodes.getMasterNodeId() + ".name", nodes.masterNode().getName())).get(), 0L);
}
public void testClusterStateNodes() throws Exception {