Interactions are not cleared from standalone mock servers
Pact::Consumer::AppManager.instance.ports_of_mock_services probably only returns instances it has itself started up.
Any update regarding this bug ?
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.
Thank you for the quick answer !
I found out that my "issue" was more related to the following discussions :
- https://github.com/DiUS/pact-consumer-js-dsl/issues/43
- https://groups.google.com/forum/#!searchin/pact-support/mock$20service/pact-support/9MwuLpnUb04/KLMEBRpbCwAJ