Wait for process to exit when stopping DevTools integration test apps

pull/9938/merge
Andy Wilkinson 7 years ago
parent 4106615425
commit 09b41a33e8

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

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

Loading…
Cancel
Save