pact-foundation / pact-jvm

JVM version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
https://docs.pact.io
Apache License 2.0
1.08k stars 479 forks source link

Hystrix command reaches timeout on Pact Consumer Test #846

Open yoka791 opened 5 years ago

yoka791 commented 5 years ago

HI, I am using pact-jvm-consumer-junit_2.12 version 3.5.24.
The function which calls the path I consume annotated with @HystrixCommand. When I run the pact test I sometimes get hystrix timeout error (The default value is 1s): com.netflix.hystrix.exception.HystrixTimeoutException: null
Again, it sometimes occurs and sometimes not, there is no consistency.
Why do I get timeouts only during pact tests? In production we haven't got timeout for this call. It seems wired to get a timeout when calling a stub which is actually on localhost..

uglyog commented 5 years ago

Are these timeouts happening on a developer machine or a CI server?