Skip to content

Commit

Permalink
Try fixing FileOutputTest on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ppkarwasz committed Nov 13, 2023
1 parent 7d45989 commit ce3a6de
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.nio.file.Path;

import org.apache.logging.log4j.core.test.junit.LoggerContextSource;
import org.apache.logging.log4j.status.StatusLogger;
import org.apache.logging.log4j.test.junit.TempLoggingDir;
import org.junit.jupiter.api.Test;

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

}

0 comments on commit ce3a6de

Please sign in to comment.