Clean up system property after running the test case (#11711)
This commit is contained in:
parent
849393c4a1
commit
bd5caa64a6
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package com.alibaba.nacos.plugin.control.utils;
|
package com.alibaba.nacos.plugin.control.utils;
|
||||||
|
|
||||||
|
import org.junit.After;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
@ -23,6 +24,11 @@ import java.io.File;
|
|||||||
|
|
||||||
public class EnvUtilsTest {
|
public class EnvUtilsTest {
|
||||||
|
|
||||||
|
@After
|
||||||
|
public void tearDown() throws Exception {
|
||||||
|
System.clearProperty("nacos.home");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void test() {
|
public void test() {
|
||||||
String nacosHome = EnvUtils.getNacosHome();
|
String nacosHome = EnvUtils.getNacosHome();
|
||||||
|
Loading…
Reference in New Issue
Block a user