Skip to content

Commit

Permalink
IGNITE-23623 Fix GridTestLog4jLoggerSelfTest
Browse files Browse the repository at this point in the history
  • Loading branch information
chesnokoff committed Nov 22, 2024
1 parent b538880 commit ee46642
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.core.LoggerContext;
import org.apache.logging.log4j.core.config.Configurator;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down Expand Up @@ -74,6 +76,15 @@ public static void afterTests() {
GridTestUtils.setFieldValue(GridTestLog4jLogger.class, GridTestLog4jLogger.class, "inited", false);
}

/** */
@After
@Before
public void cleanUp() {
System.clearProperty("appId");
LogManager.shutdown();
GridTestUtils.setFieldValue(GridTestLog4jLogger.class, GridTestLog4jLogger.class, "inited", false);
}

/** */
@Test
public void testFileConstructor() throws Exception {
Expand Down

0 comments on commit ee46642

Please sign in to comment.