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