mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
Remove unnecessary assertion from test
closes elastic/elasticsearch#368 Original commit: elastic/x-pack-elasticsearch@3076c87509
This commit is contained in:
parent
b1f7724790
commit
ed6f38b3b0
@ -5,7 +5,6 @@
|
|||||||
*/
|
*/
|
||||||
package org.elasticsearch.marvel.agent.collector.node;
|
package org.elasticsearch.marvel.agent.collector.node;
|
||||||
|
|
||||||
import org.apache.lucene.util.Constants;
|
|
||||||
import org.elasticsearch.bootstrap.Bootstrap;
|
import org.elasticsearch.bootstrap.Bootstrap;
|
||||||
import org.elasticsearch.cluster.ClusterName;
|
import org.elasticsearch.cluster.ClusterName;
|
||||||
import org.elasticsearch.cluster.ClusterService;
|
import org.elasticsearch.cluster.ClusterService;
|
||||||
@ -27,7 +26,6 @@ public class NodeStatsCollectorTests extends ElasticsearchIntegrationTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testNodeStatsCollector() throws Exception {
|
public void testNodeStatsCollector() throws Exception {
|
||||||
assumeFalse("test is muted on Windows. See https://github.com/elastic/x-plugins/issues/368", Constants.WINDOWS);
|
|
||||||
String[] nodes = internalCluster().getNodeNames();
|
String[] nodes = internalCluster().getNodeNames();
|
||||||
for (String node : nodes) {
|
for (String node : nodes) {
|
||||||
logger.info("--> collecting node stats on node [{}]", node);
|
logger.info("--> collecting node stats on node [{}]", node);
|
||||||
@ -52,7 +50,6 @@ public class NodeStatsCollectorTests extends ElasticsearchIntegrationTest {
|
|||||||
assertNotNull(payload.getDiskThresholdWaterMarkHigh());
|
assertNotNull(payload.getDiskThresholdWaterMarkHigh());
|
||||||
|
|
||||||
assertNotNull(payload.getNodeStats());
|
assertNotNull(payload.getNodeStats());
|
||||||
assertThat(payload.getNodeStats().getProcess().getOpenFileDescriptors(), greaterThan(0L));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user