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
b08e51f0
Commit
b08e51f0
authored
Sep 29, 2017
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase WebClient testing timeout
parent
69a1eebf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
AbstractWebEndpointIntegrationTests.java
...ate/endpoint/web/AbstractWebEndpointIntegrationTests.java
+6
-5
No files found.
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/web/AbstractWebEndpointIntegrationTests.java
View file @
b08e51f0
...
...
@@ -16,6 +16,7 @@
package
org
.
springframework
.
boot
.
actuate
.
endpoint
.
web
;
import
java.time.Duration
;
import
java.util.Collections
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -62,6 +63,8 @@ import static org.mockito.Mockito.verify;
*/
public
abstract
class
AbstractWebEndpointIntegrationTests
<
T
extends
ConfigurableApplicationContext
>
{
private
static
final
Duration
TIMEOUT
=
Duration
.
ofSeconds
(
30
);
private
final
Class
<?>
exporterConfiguration
;
protected
AbstractWebEndpointIntegrationTests
(
Class
<?>
exporterConfiguration
)
{
...
...
@@ -311,11 +314,9 @@ public abstract class AbstractWebEndpointIntegrationTests<T extends Configurable
"test"
,
Collections
.
singletonMap
(
"endpointPath"
,
endpointPath
)));
context
.
refresh
();
try
{
consumer
.
accept
(
context
,
WebTestClient
.
bindToServer
()
.
baseUrl
(
"http://localhost:"
+
getPort
(
context
)
+
endpointPath
)
.
build
());
String
url
=
"http://localhost:"
+
getPort
(
context
)
+
endpointPath
;
consumer
.
accept
(
context
,
WebTestClient
.
bindToServer
().
baseUrl
(
url
)
.
responseTimeout
(
TIMEOUT
).
build
());
}
finally
{
context
.
close
();
...
...
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