Skip to content

Commit

Permalink
Backport of [CI] JvmStatsTests testJvmStats failing (115711) (elastic…
Browse files Browse the repository at this point in the history
…#116252)

Fix and unmute test JvmStatsTests.testJvmStats
  • Loading branch information
alexey-ivanov-es authored Nov 5, 2024
1 parent 1a139cd commit 4764c35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,6 @@ tests:
- class: org.elasticsearch.reservedstate.service.FileSettingsServiceTests
method: testProcessFileChanges
issue: https://github.com/elastic/elasticsearch/issues/115280
- class: org.elasticsearch.monitor.jvm.JvmStatsTests
method: testJvmStats
issue: https://github.com/elastic/elasticsearch/issues/115711
- class: org.elasticsearch.xpack.inference.DefaultEndPointsIT
method: testInferDeploysDefaultE5
issue: https://github.com/elastic/elasticsearch/issues/115361
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void testJvmStats() {
assertThat(memoryPools, hasKey("Metaspace"));
assertThat(memoryPools.keySet(), hasSize(greaterThan(3)));
for (JvmStats.MemoryPool memoryPool : memoryPools.values()) {
assertThat(memoryPool.getUsed().getBytes(), greaterThan(0L));
assertThat("Memory pool: " + memoryPool.getName(), memoryPool.getUsed().getBytes(), greaterThanOrEqualTo(0L));
}

// Threads
Expand Down

0 comments on commit 4764c35

Please sign in to comment.