From c5cfb8750b7cbbe5d8025cabf258989ad2ac220d Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 3 Mar 2021 16:41:34 +0000 Subject: [PATCH] Delete files after destroying processes that may be accessing them Closes gh-25457 --- .../EmbeddedServerContainerInvocationContextProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/test/java/org/springframework/boot/context/embedded/EmbeddedServerContainerInvocationContextProvider.java b/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/test/java/org/springframework/boot/context/embedded/EmbeddedServerContainerInvocationContextProvider.java index 4b8692f2d3b..5a8c5126d5b 100644 --- a/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/test/java/org/springframework/boot/context/embedded/EmbeddedServerContainerInvocationContextProvider.java +++ b/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 public void afterAll(ExtensionContext context) throws Exception { - FileSystemUtils.deleteRecursively(this.tempDir); cleanupCaches(); + FileSystemUtils.deleteRecursively(this.tempDir); } private void cleanupCaches() {