Commit d774847d by Spencer Gibb

try and fix LoadBalancerFeignClientOverrideTests

parent 5e38ae12
......@@ -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 {
}
......
......@@ -20,8 +20,8 @@ eureka:
# path: /myerror
hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 60000
ribbon:
ConnectTimeout: 3000
ReadTimeout: 60000
ConnectTimeout: 3001
ReadTimeout: 60001
management:
context-path: /admin
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