Commit da3920bd authored by Andy Wilkinson's avatar Andy Wilkinson

Wait for process to exit to avoid race with file deletion

See gh-25457
parent c5cfb875
......@@ -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();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment