diff --git a/plugin/control/src/test/java/com/alibaba/nacos/plugin/control/utils/EnvUtilsTest.java b/plugin/control/src/test/java/com/alibaba/nacos/plugin/control/utils/EnvUtilsTest.java index a15b896b973..260a8d81d41 100644 --- a/plugin/control/src/test/java/com/alibaba/nacos/plugin/control/utils/EnvUtilsTest.java +++ b/plugin/control/src/test/java/com/alibaba/nacos/plugin/control/utils/EnvUtilsTest.java @@ -16,6 +16,7 @@ package com.alibaba.nacos.plugin.control.utils; +import org.junit.After; import org.junit.Assert; import org.junit.Test; @@ -23,6 +24,11 @@ public class EnvUtilsTest { + @After + public void tearDown() throws Exception { + System.clearProperty("nacos.home"); + } + @Test public void test() { String nacosHome = EnvUtils.getNacosHome();