Skip to content

Commit

Permalink
Clean up system property after running the test case (#11711)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongqishang authored Jan 31, 2024
1 parent 849393c commit bd5caa6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,19 @@

package com.alibaba.nacos.plugin.control.utils;

import org.junit.After;
import org.junit.Assert;
import org.junit.Test;

import java.io.File;

public class EnvUtilsTest {

@After
public void tearDown() throws Exception {
System.clearProperty("nacos.home");
}

@Test
public void test() {
String nacosHome = EnvUtils.getNacosHome();
Expand Down

0 comments on commit bd5caa6

Please sign in to comment.