Attempt to fix flaky logging tests

pull/23886/head
Phillip Webb 4 years ago
parent 70b7326b73
commit 771503f30d

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

Loading…
Cancel
Save