-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intermittent failure when connecting to Pact Daemon #11
Comments
This on a mac? |
Yes, running on Mac OS X El Capitan. |
Could you please try the following and record the output during a failed run:
(please include all of the successful ones before hand also) |
OK got a random repro this morning. I'm guessing it's a race condition with the Mock Service. It reports up but the port not yet available. Should be an easy enough fix in |
Have been able to reliably repro under load (using stress) Here's a run:
The timeout is just too small (1s) and additionally, the test should fail earlier (as you can see from the log). I'll bump this to 10 temporarily, and consider making this configurable (it's unlikely to be part of an end-state API so hesitant to add it in at this point). |
fix: increased timeout to reduce likelihood of intermittent failure #11
I've pushed a package that I've tested against a reliable repro locally that I can no longer reproduce. It's a fairly simple workaround and seems to do the trick. Could you please check it out? (v0.0.3) |
Feedback from @serinth via direct email seems to confirm this is now fixed. |
Update, just waiting on a release before closing this off fully. |
It looks like sometimes we get test failures when connecting to the Pact Daemon/Mock service it provides. This is inconsistent when running the tests. It can fail a bunch of times and then pass.
This can cause CI to fail.
See below for sample output.
I've replaced the username with .
The text was updated successfully, but these errors were encountered: