pact-foundation / pact-ruby

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://pact.io
MIT License
2.16k stars 214 forks source link

Interactions are not cleared from standalone mock servers #28

Open bethesque opened 10 years ago

bethesque commented 10 years ago

Pact::Consumer::AppManager.instance.ports_of_mock_services probably only returns instances it has itself started up.

fdnhkj commented 8 years ago

Any update regarding this bug ?

bethesque commented 8 years ago

This is only when you have specified standalone true in the mock server config when running the tests in rspec. In this case, standalone means, started manually. It's an unusual use case, you'd only do it if you were debugging your tests. It shouldn't be a problem really, I was just being pedantic when I raised this. Just restart the server.

fdnhkj commented 8 years ago

Thank you for the quick answer !

I found out that my "issue" was more related to the following discussions :