diff --git a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpointTests.java b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpointTests.java index 50055074eed..3c2375f3578 100644 --- a/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpointTests.java +++ b/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/LogFileMvcEndpointTests.java @@ -62,11 +62,6 @@ public class LogFileMvcEndpointTests { this.mvc.setEnvironment(this.environment); } - @After - public void after() { - new File("test.log").delete(); - } - @Test public void notAvailableWithoutLogFile() throws IOException { assertThat(this.mvc.available().getStatusCode(), equalTo(HttpStatus.NOT_FOUND));