From de2dfe44f571ec7e7dae34a62590524322726a04 Mon Sep 17 00:00:00 2001 From: Joey Date: Sun, 16 Jul 2023 16:22:40 +0800 Subject: [PATCH] fix test case --- .../nacos/prometheus/controller/PrometheusControllerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus/src/test/java/com/alibaba/nacos/prometheus/controller/PrometheusControllerTest.java b/prometheus/src/test/java/com/alibaba/nacos/prometheus/controller/PrometheusControllerTest.java index 461e7cb6332..b321c9ab913 100644 --- a/prometheus/src/test/java/com/alibaba/nacos/prometheus/controller/PrometheusControllerTest.java +++ b/prometheus/src/test/java/com/alibaba/nacos/prometheus/controller/PrometheusControllerTest.java @@ -119,7 +119,7 @@ public void testMetricNamespace() throws Exception { public void testMetricNamespaceService() throws Exception { when(instanceServiceV2.listAllInstances(nameSpace, NamingUtils.getGroupedName(name, group))).thenReturn( testInstanceList); - String promethesuNamespaceServicePath = ApiConstants.PROMETHEUS_CONTROLLER_NAMESPACE_PATH.replace("{namespaceId}", + String promethesuNamespaceServicePath = ApiConstants.PROMETHEUS_CONTROLLER_SERVICE_PATH.replace("{namespaceId}", nameSpace); promethesuNamespaceServicePath = promethesuNamespaceServicePath.replace("{service}", service.getName()); MockHttpServletRequestBuilder builder = MockMvcRequestBuilders.get(promethesuNamespaceServicePath);