diff --git a/apollo-portal/src/test/java/com/ctrip/apollo/portal/ConfigServiceTest.java b/apollo-portal/src/test/java/com/ctrip/apollo/portal/ConfigServiceTest.java index 77a34bd9b67aecf166fa484b18157339200e03f0..c6e95760928608b6fb67b3de72c4875405240169 100644 --- a/apollo-portal/src/test/java/com/ctrip/apollo/portal/ConfigServiceTest.java +++ b/apollo-portal/src/test/java/com/ctrip/apollo/portal/ConfigServiceTest.java @@ -74,6 +74,7 @@ public class ConfigServiceTest { when(namespaceAPI.findNamespaceByCluster(appId, Env.DEV, clusterName)).thenReturn(namespaces); when(releaseAPI.loadLatestRelease(appId, Env.DEV, clusterName, namespaceName)).thenReturn(someRelease); + when(releaseAPI.loadLatestRelease(appId, Env.DEV, clusterName, "hermas")).thenReturn(someRelease); when(itemAPI.findItems(appId, Env.DEV, clusterName, namespaceName)).thenReturn(someItems); List namespaceVOs = configService.findNampspaces(appId, Env.DEV, clusterName);