diff --git a/spring-boot/src/test/java/org/springframework/boot/logging/LoggingApplicationListenerTests.java b/spring-boot/src/test/java/org/springframework/boot/logging/LoggingApplicationListenerTests.java index 98033bec439..81f95c346ad 100644 --- a/spring-boot/src/test/java/org/springframework/boot/logging/LoggingApplicationListenerTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/logging/LoggingApplicationListenerTests.java @@ -92,6 +92,7 @@ public class LoggingApplicationListenerTests { if (this.context != null) { this.context.close(); } + LoggingSystem.get(getClass().getClassLoader()).cleanUp(); } private String tmpDir() {