-
Notifications
You must be signed in to change notification settings - Fork 12
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
Race condition #198
Comments
You need to wait on the promise that
for:
alternatively you can use Note that your I think I'll add a note to the readme to make this clearer. (another source of brittle tests is running the tests in parallel - this occasionally causes failures when writing pacts. Make sure you're invoking jest with I'll leave this open in case this doesn't fix your issue. Feel free to close it if it does. |
I think adding the note to the readme as you mentioned will be useful, thanks for your help |
You're welcome! Glad it worked out 👍 |
I am facing a race condition issue.
Sometimes the test passes, but more often than not it fails, since, the test runs before the provider adds the interaction, I figured out a few workarounds, however since my test looks a lot like the examples in the Readme, I'd like to know if I am doing something wrong, or if this is expected behavior
here is my test:
The text was updated successfully, but these errors were encountered: