mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-27 20:49:34 +00:00
Wait for process to exit when stopping DevTools integration test apps
This commit is contained in:
+1
-1
@@ -78,7 +78,7 @@ public class DevToolsIntegrationTests {
|
||||
}
|
||||
|
||||
@After
|
||||
public void stopApplication() {
|
||||
public void stopApplication() throws InterruptedException {
|
||||
this.launchedApplication.stop();
|
||||
}
|
||||
|
||||
|
||||
+2
-1
@@ -37,9 +37,10 @@ class LaunchedApplication {
|
||||
this.processes = processes;
|
||||
}
|
||||
|
||||
void stop() {
|
||||
void stop() throws InterruptedException {
|
||||
for (Process process : this.processes) {
|
||||
process.destroy();
|
||||
process.waitFor();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user