Wait for process to exit when stopping DevTools integration test apps

This commit is contained in:
Andy Wilkinson 2017-08-03 21:00:22 +01:00
parent 4106615425
commit 09b41a33e8
2 changed files with 3 additions and 2 deletions

View File

@ -78,7 +78,7 @@ public class DevToolsIntegrationTests {
}
@After
public void stopApplication() {
public void stopApplication() throws InterruptedException {
this.launchedApplication.stop();
}

View File

@ -37,9 +37,10 @@ class LaunchedApplication {
this.processes = processes;
}
void stop() {
void stop() throws InterruptedException {
for (Process process : this.processes) {
process.destroy();
process.waitFor();
}
}