[Monitoring] Fix MonitoringIT on Windows
Original commit: elastic/x-pack-elasticsearch@7a835c179d
This commit is contained in:
parent
ce7b473741
commit
6957282b50
|
@ -410,7 +410,7 @@ public class MonitoringIT extends ESRestTestCase {
|
|||
assertEquals(5, source.size());
|
||||
|
||||
final Map<String, Object> nodeStats = (Map<String, Object>) source.get(NodeStatsMonitoringDoc.TYPE);
|
||||
assertEquals(9, nodeStats.size());
|
||||
assertEquals(Constants.WINDOWS ? 8 : 9, nodeStats.size());
|
||||
|
||||
NodeStatsMonitoringDoc.XCONTENT_FILTERS.forEach(filter -> {
|
||||
if (Constants.WINDOWS && filter.startsWith("node_stats.os.cpu.load_average")) {
|
||||
|
|
Loading…
Reference in New Issue