Skip to content

Commit c5cfb87

Browse files
committed
Delete files after destroying processes that may be accessing them
Closes gh-25457
1 parent 8e67ae7 commit c5cfb87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ public Stream<TestTemplateInvocationContext> provideTestTemplateInvocationContex
9797

9898
@Override
9999
public void afterAll(ExtensionContext context) throws Exception {
100-
FileSystemUtils.deleteRecursively(this.tempDir);
101100
cleanupCaches();
101+
FileSystemUtils.deleteRecursively(this.tempDir);
102102
}
103103

104104
private void cleanupCaches() {

0 commit comments

Comments
 (0)