Fix test bug from #26166

This commit is contained in:
David Roberts 2017-10-03 15:55:37 +01:00
parent ea7be2d527
commit 2bdeee8840

View File

@ -233,8 +233,8 @@ public class OsProbeTests extends ESTestCase {
assertThat(cgroup.getCpuStat().getNumberOfElapsedPeriods(), equalTo(17992L)); assertThat(cgroup.getCpuStat().getNumberOfElapsedPeriods(), equalTo(17992L));
assertThat(cgroup.getCpuStat().getNumberOfTimesThrottled(), equalTo(1311L)); assertThat(cgroup.getCpuStat().getNumberOfTimesThrottled(), equalTo(1311L));
assertThat(cgroup.getCpuStat().getTimeThrottledNanos(), equalTo(139298645489L)); assertThat(cgroup.getCpuStat().getTimeThrottledNanos(), equalTo(139298645489L));
assertThat(cgroup.getMemoryLimitInBytes(), equalTo(Long.MAX_VALUE)); assertThat(cgroup.getMemoryLimitInBytes(), equalTo("18446744073709551615"));
assertThat(cgroup.getMemoryUsageInBytes(), equalTo(4796416L)); assertThat(cgroup.getMemoryUsageInBytes(), equalTo("4796416"));
} else { } else {
assertNull(cgroup); assertNull(cgroup);
} }