Attempt to fix flaky logging tests

This commit is contained in:
Phillip Webb 2020-10-25 09:20:57 -07:00
parent 70b7326b73
commit 771503f30d
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ class LogbackLoggingSystemTests extends AbstractLoggingSystemTests {
@BeforeEach
void setup() {
System.getProperties().remove(LoggingSystemProperties.CONSOLE_LOG_CHARSET);
System.getProperties().remove(LoggingSystemProperties.FILE_LOG_CHARSET);
this.systemPropertyNames = new HashSet<>(System.getProperties().keySet());
this.loggingSystem.cleanUp();
this.logger = ((LoggerContext) StaticLoggerBinder.getSingleton().getLoggerFactory()).getLogger(getClass());