Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
744cdf43
Commit
744cdf43
authored
Oct 30, 2018
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Use random port for DevTools tests"
This reverts commit
4630c229
.
parent
4630c229
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
DevToolsIntegrationTests.java
...amework/boot/devtools/tests/DevToolsIntegrationTests.java
+1
-3
RemoteApplicationLauncher.java
...mework/boot/devtools/tests/RemoteApplicationLauncher.java
+3
-3
No files found.
spring-boot-tests/spring-boot-integration-tests/spring-boot-devtools-tests/src/test/java/org/springframework/boot/devtools/tests/DevToolsIntegrationTests.java
View file @
744cdf43
...
...
@@ -80,9 +80,7 @@ public class DevToolsIntegrationTests {
@After
public
void
stopApplication
()
throws
InterruptedException
{
if
(
this
.
launchedApplication
!=
null
)
{
this
.
launchedApplication
.
stop
();
}
this
.
launchedApplication
.
stop
();
}
@Test
...
...
spring-boot-tests/spring-boot-integration-tests/spring-boot-devtools-tests/src/test/java/org/springframework/boot/devtools/tests/RemoteApplicationLauncher.java
View file @
744cdf43
...
...
@@ -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
(),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment