mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 17:59:03 +00:00
Attempt to fix flaky logging tests
This commit is contained in:
+2
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user