Skip to content

Commit 84087bd

Browse files
[CI] JvmStatsTests testJvmStats failing (#116197) (#116427)
Fix test JvmStatsTests.testJvmStats (backport from main) Fixes #116197
1 parent 022be89 commit 84087bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)