Skip to content

Commit 60f6753

Browse files
[CI] JvmStatsTests testJvmStats failing (115711) (#116197)
Fix and unmute test JvmStatsTests.testJvmStats Fixes #115711
1 parent b7b1ca0 commit 60f6753

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,6 @@ tests:
193193
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
194194
method: test {p0=ml/inference_crud/Test delete given model referenced by pipeline}
195195
issue: https://github.com/elastic/elasticsearch/issues/115970
196-
- class: org.elasticsearch.monitor.jvm.JvmStatsTests
197-
method: testJvmStats
198-
issue: https://github.com/elastic/elasticsearch/issues/115711
199196
- class: org.elasticsearch.repositories.s3.S3ServiceTests
200197
method: testRetryOn403RetryPolicy
201198
issue: https://github.com/elastic/elasticsearch/issues/115986

server/src/test/java/org/elasticsearch/monitor/jvm/JvmStatsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void testJvmStats() {
5353
assertThat(memoryPools, hasKey("Metaspace"));
5454
assertThat(memoryPools.keySet(), hasSize(greaterThan(3)));
5555
for (JvmStats.MemoryPool memoryPool : memoryPools.values()) {
56-
assertThat(memoryPool.getUsed().getBytes(), greaterThan(0L));
56+
assertThat("Memory pool: " + memoryPool.getName(), memoryPool.getUsed().getBytes(), greaterThanOrEqualTo(0L));
5757
}
5858

5959
// Threads

0 commit comments

Comments
 (0)