diff --git a/elasticsearch/x-pack/marvel/src/test/java/org/elasticsearch/marvel/agent/collector/node/NodeStatsCollectorTests.java b/elasticsearch/x-pack/marvel/src/test/java/org/elasticsearch/marvel/agent/collector/node/NodeStatsCollectorTests.java index 1b84c38ad75..089fe6adcd2 100644 --- a/elasticsearch/x-pack/marvel/src/test/java/org/elasticsearch/marvel/agent/collector/node/NodeStatsCollectorTests.java +++ b/elasticsearch/x-pack/marvel/src/test/java/org/elasticsearch/marvel/agent/collector/node/NodeStatsCollectorTests.java @@ -53,7 +53,7 @@ public class NodeStatsCollectorTests extends AbstractCollectorTestCase { assertThat(nodeStatsMarvelDoc.getSourceNode(), notNullValue()); assertThat(nodeStatsMarvelDoc.getNodeId(), - equalTo(internalCluster().getInstance(ClusterService.class, node).localNode().id())); + equalTo(internalCluster().getInstance(ClusterService.class, node).localNode().getId())); assertThat(nodeStatsMarvelDoc.isNodeMaster(), equalTo(node.equals(internalCluster().getMasterName()))); assertThat(nodeStatsMarvelDoc.isMlockall(), equalTo(BootstrapInfo.isMemoryLocked())); assertNotNull(nodeStatsMarvelDoc.isDiskThresholdDeciderEnabled());