We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55eb372 commit a444079Copy full SHA for a444079
server/src/test/java/org/opensearch/monitor/os/OsProbeTests.java
@@ -41,6 +41,7 @@
41
import static org.hamcrest.Matchers.is;
42
import static org.hamcrest.Matchers.lessThanOrEqualTo;
43
import static org.hamcrest.Matchers.notNullValue;
44
+import static org.junit.Assume.assumeThat;
45
46
import java.io.IOException;
47
import java.math.BigInteger;
@@ -295,6 +296,7 @@ List<String> readSysFsCgroupCpuAcctCpuStat(String controlGroup) throws IOExcepti
295
296
}
297
};
298
299
+ assumeThat("CGroups are not available", noCpuStatsOsProbe.areCgroupStatsAvailable(), is(true));
300
noCpuStatsOsProbe.osStats();
301
// no nr_throttled and throttled_time
302
verify(logger, times(2)).warn(anyString());
0 commit comments