diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java index 6c60fc0a0b..6e9dcff5c7 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java @@ -106,6 +106,7 @@ public class LogbackLoggingSystemTests extends AbstractLoggingSystemTests { public void clear() { super.clear(); this.loggingSystem.cleanUp(); + ((LoggerContext) StaticLoggerBinder.getSingleton().getLoggerFactory()).stop(); } @Test