Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
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
openSource
spring-cloud-netflix
Commits
d774847d
Commit
d774847d
authored
Mar 21, 2016
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try and fix LoadBalancerFeignClientOverrideTests
parent
5e38ae12
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
LoadBalancerFeignClientOverrideTests.java
...ix/feign/ribbon/LoadBalancerFeignClientOverrideTests.java
+1
-4
application.yml
spring-cloud-netflix-core/src/test/resources/application.yml
+2
-2
No files found.
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/feign/ribbon/LoadBalancerFeignClientOverrideTests.java
View file @
d774847d
...
...
@@ -45,7 +45,6 @@ import static org.junit.Assert.assertEquals;
@SpringApplicationConfiguration
(
classes
=
LoadBalancerFeignClientOverrideTests
.
TestConfiguration
.
class
)
@WebIntegrationTest
(
randomPort
=
true
,
value
=
{
"spring.application.name=loadBalancerFeignClientTests"
,
"ribbon.ConnectTimeout=5"
,
"ribbon.ReadTimeout=10"
,
"foo.ribbon.ConnectTimeout=7"
,
"foo.ribbon.ReadTimeout=17"
,
"feign.httpclient.enabled=false"
,
"feign.okhttp.enabled=false"
})
@DirtiesContext
...
...
@@ -70,7 +69,7 @@ public class LoadBalancerFeignClientOverrideTests {
// generic ribbon default configuration
Request
.
Options
bazOptions
=
this
.
context
.
getInstance
(
"baz"
,
Request
.
Options
.
class
);
assertEquals
(
LoadBalancerFeignClient
.
DEFAULT_OPTIONS
,
fooOptions
);
assertOptions
(
bazOptions
,
"baz"
,
5
,
10
);
assertOptions
(
bazOptions
,
"baz"
,
3001
,
60001
);
}
void
assertOptions
(
Request
.
Options
options
,
String
name
,
int
expectedConnect
,
int
expectedRead
)
{
...
...
@@ -83,8 +82,6 @@ public class LoadBalancerFeignClientOverrideTests {
@Configuration
@EnableFeignClients
(
clients
=
{
FooClient
.
class
,
BarClient
.
class
,
BazClient
.
class
})
@EnableAutoConfiguration
//@Import({ PropertyPlaceholderAutoConfiguration.class, ArchaiusAutoConfiguration.class,
// FeignAutoConfiguration.class })
protected
static
class
TestConfiguration
{
}
...
...
spring-cloud-netflix-core/src/test/resources/application.yml
View file @
d774847d
...
...
@@ -20,8 +20,8 @@ eureka:
# path: /myerror
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds
:
60000
ribbon
:
ConnectTimeout
:
300
0
ReadTimeout
:
6000
0
ConnectTimeout
:
300
1
ReadTimeout
:
6000
1
management
:
context-path
:
/admin
endpoints
:
...
...
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