mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Revert "Use random port for DevTools tests"
This reverts commit 4630c2292f
.
This commit is contained in:
parent
4630c2292f
commit
744cdf43e9
@ -80,9 +80,7 @@ public class DevToolsIntegrationTests {
|
||||
|
||||
@After
|
||||
public void stopApplication() throws InterruptedException {
|
||||
if (this.launchedApplication != null) {
|
||||
this.launchedApplication.stop();
|
||||
}
|
||||
this.launchedApplication.stop();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -40,12 +40,12 @@ abstract class RemoteApplicationLauncher implements ApplicationLauncher {
|
||||
throws Exception {
|
||||
LaunchedJvm applicationJvm = javaLauncher.launch("app",
|
||||
createApplicationClassPath(), "com.example.DevToolsTestApplication",
|
||||
"--server.port=0", "--spring.devtools.remote.secret=secret");
|
||||
int port = awaitServerPort(applicationJvm.getStandardOut());
|
||||
"--server.port=12345", "--spring.devtools.remote.secret=secret");
|
||||
awaitServerPort(applicationJvm.getStandardOut());
|
||||
LaunchedJvm remoteSpringApplicationJvm = javaLauncher.launch(
|
||||
"remote-spring-application", createRemoteSpringApplicationClassPath(),
|
||||
RemoteSpringApplication.class.getName(),
|
||||
"--spring.devtools.remote.secret=secret", "http://localhost:" + port);
|
||||
"--spring.devtools.remote.secret=secret", "http://localhost:12345");
|
||||
awaitRemoteSpringApplication(remoteSpringApplicationJvm.getStandardOut());
|
||||
return new LaunchedApplication(new File("target/remote"),
|
||||
applicationJvm.getStandardOut(), applicationJvm.getStandardError(),
|
||||
|
Loading…
Reference in New Issue
Block a user