Skip to content

Commit ce3a6de

Browse files
committed
Try fixing FileOutputTest on Windows
1 parent 7d45989 commit ce3a6de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

log4j-core-test/src/test/java/org/apache/logging/log4j/core/config/FileOutputTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import java.nio.file.Path;
2121

2222
import org.apache.logging.log4j.core.test.junit.LoggerContextSource;
23+
import org.apache.logging.log4j.status.StatusLogger;
2324
import org.apache.logging.log4j.test.junit.TempLoggingDir;
2425
import org.junit.jupiter.api.Test;
2526

@@ -38,6 +39,8 @@ public class FileOutputTest {
3839
public void testConfig() throws IOException {
3940
final Path logFile = loggingPath.resolve("status.log");
4041
assertThat(logFile).exists().isNotEmptyFile();
42+
// Closes the current listeners
43+
StatusLogger.getLogger().reset();
4144
}
4245

4346
}

0 commit comments

Comments
 (0)