Commit d774847d by Spencer Gibb

try and fix LoadBalancerFeignClientOverrideTests

parent 5e38ae12
...@@ -45,7 +45,6 @@ import static org.junit.Assert.assertEquals; ...@@ -45,7 +45,6 @@ import static org.junit.Assert.assertEquals;
@SpringApplicationConfiguration(classes = LoadBalancerFeignClientOverrideTests.TestConfiguration.class) @SpringApplicationConfiguration(classes = LoadBalancerFeignClientOverrideTests.TestConfiguration.class)
@WebIntegrationTest(randomPort = true, value = { @WebIntegrationTest(randomPort = true, value = {
"spring.application.name=loadBalancerFeignClientTests", "spring.application.name=loadBalancerFeignClientTests",
"ribbon.ConnectTimeout=5", "ribbon.ReadTimeout=10",
"foo.ribbon.ConnectTimeout=7", "foo.ribbon.ReadTimeout=17", "foo.ribbon.ConnectTimeout=7", "foo.ribbon.ReadTimeout=17",
"feign.httpclient.enabled=false", "feign.okhttp.enabled=false"}) "feign.httpclient.enabled=false", "feign.okhttp.enabled=false"})
@DirtiesContext @DirtiesContext
...@@ -70,7 +69,7 @@ public class LoadBalancerFeignClientOverrideTests { ...@@ -70,7 +69,7 @@ public class LoadBalancerFeignClientOverrideTests {
// generic ribbon default configuration // generic ribbon default configuration
Request.Options bazOptions = this.context.getInstance("baz", Request.Options.class); Request.Options bazOptions = this.context.getInstance("baz", Request.Options.class);
assertEquals(LoadBalancerFeignClient.DEFAULT_OPTIONS, fooOptions); 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) { void assertOptions(Request.Options options, String name, int expectedConnect, int expectedRead) {
...@@ -83,8 +82,6 @@ public class LoadBalancerFeignClientOverrideTests { ...@@ -83,8 +82,6 @@ public class LoadBalancerFeignClientOverrideTests {
@Configuration @Configuration
@EnableFeignClients(clients = { FooClient.class, BarClient.class, BazClient.class }) @EnableFeignClients(clients = { FooClient.class, BarClient.class, BazClient.class })
@EnableAutoConfiguration @EnableAutoConfiguration
//@Import({ PropertyPlaceholderAutoConfiguration.class, ArchaiusAutoConfiguration.class,
// FeignAutoConfiguration.class })
protected static class TestConfiguration { protected static class TestConfiguration {
} }
......
...@@ -20,8 +20,8 @@ eureka: ...@@ -20,8 +20,8 @@ eureka:
# path: /myerror # path: /myerror
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 60000 hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 60000
ribbon: ribbon:
ConnectTimeout: 3000 ConnectTimeout: 3001
ReadTimeout: 60000 ReadTimeout: 60001
management: management:
context-path: /admin context-path: /admin
endpoints: endpoints:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment