Please work
This commit is contained in:
@@ -23,7 +23,7 @@ import feign.Request;
|
||||
import feign.Response;
|
||||
import org.springframework.beans.factory.BeanFactory;
|
||||
|
||||
class LazyClient implements Client {
|
||||
class LazyClient implements Client {
|
||||
|
||||
private final BeanFactory beanFactory;
|
||||
private final Client delegate;
|
||||
|
||||
@@ -74,12 +74,9 @@ import static org.assertj.core.api.BDDAssertions.then;
|
||||
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
@TestPropertySource(properties = {
|
||||
"spring.application.name=fooservice",
|
||||
"spring.sleuth.sampler.probability=1.0",
|
||||
"feign.hystrix.enabled=true",
|
||||
"spring.sleuth.http.legacy.enabled=true",
|
||||
"hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=60000",
|
||||
"hystrix.command.default.execution.isolation.strategy=SEMAPHORE"})
|
||||
@DirtiesContext
|
||||
public class FeignClientServerErrorTests {
|
||||
|
||||
private static final Log log = LogFactory.getLog(FeignClientServerErrorTests.class);
|
||||
|
||||
@@ -27,7 +27,7 @@ import org.springframework.web.client.RestTemplate;
|
||||
* @author Spencer Gibb
|
||||
*/
|
||||
@SpringBootApplication
|
||||
@EnableAsync
|
||||
@EnableAsyncFeignClientServerErrorTests
|
||||
public class SampleSleuthApplication {
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user