Skip to content

Commit 17a1b28

Browse files
committed
Isolate LoggerContext state to each test
Closes gh-16162
1 parent 83216c3 commit 17a1b28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ public void setup() {
106106
public void clear() {
107107
super.clear();
108108
this.loggingSystem.cleanUp();
109+
((LoggerContext) StaticLoggerBinder.getSingleton().getLoggerFactory()).stop();
109110
}
110111

111112
@Test

0 commit comments

Comments
 (0)