From 8afb79b61f983441fa62a8c578bcd2ebba4fba20 Mon Sep 17 00:00:00 2001 From: Alexey Ivanov Date: Tue, 5 Nov 2024 11:21:17 +0000 Subject: [PATCH] [CI] JvmStatsTests testJvmStats failing (#116197) Fix test JvmStatsTests.testJvmStats (backport from main) Fixes #116197 --- .../test/java/org/elasticsearch/monitor/jvm/JvmStatsTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/elasticsearch/monitor/jvm/JvmStatsTests.java b/server/src/test/java/org/elasticsearch/monitor/jvm/JvmStatsTests.java index 28976d803ff53..7956d67c83c3b 100644 --- a/server/src/test/java/org/elasticsearch/monitor/jvm/JvmStatsTests.java +++ b/server/src/test/java/org/elasticsearch/monitor/jvm/JvmStatsTests.java @@ -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