From 590b883bddfe7249c41b606d871a9690e256b75a Mon Sep 17 00:00:00 2001 From: onewe Date: Fri, 17 Jun 2022 12:39:13 +0800 Subject: [PATCH] [ISSUE #8515] fix ci error --- .../healthcheck/v2/processor/HttpHealthCheckProcessorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/naming/src/test/java/com/alibaba/nacos/naming/healthcheck/v2/processor/HttpHealthCheckProcessorTest.java b/naming/src/test/java/com/alibaba/nacos/naming/healthcheck/v2/processor/HttpHealthCheckProcessorTest.java index cdd94f4b290..83a60181f4c 100644 --- a/naming/src/test/java/com/alibaba/nacos/naming/healthcheck/v2/processor/HttpHealthCheckProcessorTest.java +++ b/naming/src/test/java/com/alibaba/nacos/naming/healthcheck/v2/processor/HttpHealthCheckProcessorTest.java @@ -80,11 +80,11 @@ public class HttpHealthCheckProcessorTest { @Before public void setUp() { + EnvUtil.setEnvironment(new MockEnvironment()); when(switchDomain.getHttpHealthParams()).thenReturn(new SwitchDomain.HttpHealthParams()); when(healthCheckTaskV2.getClient()).thenReturn(ipPortBasedClient); when(ipPortBasedClient.getInstancePublishInfo(service)).thenReturn(healthCheckInstancePublishInfo); httpHealthCheckProcessor = new HttpHealthCheckProcessor(healthCheckCommon, switchDomain); - EnvUtil.setEnvironment(new MockEnvironment()); } @Test