From cf42943a33540456cfb39600da0aa92175f1943d Mon Sep 17 00:00:00 2001 From: Gagan Juneja Date: Mon, 22 Jul 2024 19:57:48 +0530 Subject: [PATCH] Fixes the failing test Signed-off-by: Gagan Juneja --- .../listener/RTFPerformanceAnalyzerSearchListenerTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/opensearch/performanceanalyzer/listener/RTFPerformanceAnalyzerSearchListenerTests.java b/src/test/java/org/opensearch/performanceanalyzer/listener/RTFPerformanceAnalyzerSearchListenerTests.java index 9629abb2..0c19492a 100644 --- a/src/test/java/org/opensearch/performanceanalyzer/listener/RTFPerformanceAnalyzerSearchListenerTests.java +++ b/src/test/java/org/opensearch/performanceanalyzer/listener/RTFPerformanceAnalyzerSearchListenerTests.java @@ -60,13 +60,13 @@ public void init() { Mockito.when(controller.isPerformanceAnalyzerEnabled()).thenReturn(true); Mockito.when( metricsRegistry.createHistogram( - Mockito.eq("CPU_Utilization"), + Mockito.eq("cpu_utilization"), Mockito.anyString(), Mockito.eq("rate"))) .thenReturn(cpuUtilizationHistogram); Mockito.when( metricsRegistry.createHistogram( - Mockito.eq("heap_used"), Mockito.anyString(), Mockito.eq("B"))) + Mockito.eq("heap_allocated"), Mockito.anyString(), Mockito.eq("B"))) .thenReturn(heapUsedHistogram); searchListener = new RTFPerformanceAnalyzerSearchListener(controller); assertEquals(