[Monitoring] Fix MonitoringIT on Windows

Original commit: elastic/x-pack-elasticsearch@7a835c179d
This commit is contained in:
Tanguy Leroux 2017-09-22 18:21:44 +02:00
parent ce7b473741
commit 6957282b50
1 changed files with 1 additions and 1 deletions

View File

@ -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")) {