-
Notifications
You must be signed in to change notification settings - Fork 226
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
ClearInteraction when using messaging pacts #479
Comments
Why do you think you need to clear them? |
Writing updated versions of old tests and adding new tests. The contract json file preserves the older interactions which I don't need anymore. |
Why does that matter? You shouldn't be uploading from a dirty development environment anyway. If you need to clear old interactions, just delete the file |
Ok. Wondering if that's correct, why its there in here |
The ClearInteractions method was removed from PactNet in v4.x and is no longer required. As @mefellows says, you should be starting each test run from a fresh environment with no existing Pact file so that older interactions aren't left behind. |
I am using messaging pacts to contract test event based communication.
Is there a way similar to
_mockProviderServiceInstance.ClearInteractions();
when using messaging pacts?The text was updated successfully, but these errors were encountered: