Browse Source

Delete files after destroying processes that may be accessing them

Closes gh-25457
pull/25486/head
Andy Wilkinson 5 years ago
parent
commit
c5cfb8750b
  1. 2
      spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/test/java/org/springframework/boot/context/embedded/EmbeddedServerContainerInvocationContextProvider.java

2
spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/test/java/org/springframework/boot/context/embedded/EmbeddedServerContainerInvocationContextProvider.java

@ -97,8 +97,8 @@ class EmbeddedServerContainerInvocationContextProvider
@Override @Override
public void afterAll(ExtensionContext context) throws Exception { public void afterAll(ExtensionContext context) throws Exception {
FileSystemUtils.deleteRecursively(this.tempDir);
cleanupCaches(); cleanupCaches();
FileSystemUtils.deleteRecursively(this.tempDir);
} }
private void cleanupCaches() { private void cleanupCaches() {

Loading…
Cancel
Save