mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Wait for process to exit to avoid race with file deletion
See gh-25457
This commit is contained in:
parent
c5cfb8750b
commit
da3920bd46
@ -64,6 +64,12 @@ abstract class AbstractApplicationLauncher implements BeforeEachCallback {
|
||||
void destroyProcess() {
|
||||
if (this.process != null) {
|
||||
this.process.destroy();
|
||||
try {
|
||||
this.process.waitFor();
|
||||
}
|
||||
catch (InterruptedException ex) {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user