pact-ruby icon indicating copy to clipboard operation
pact-ruby copied to clipboard

Interactions are not cleared from standalone mock servers

Open bethesque opened this issue 10 years ago • 3 comments

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

bethesque avatar Jun 03 '14 03:06 bethesque

Any update regarding this bug ?

fdnhkj avatar Feb 03 '16 15:02 fdnhkj

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.

bethesque avatar Feb 05 '16 04:02 bethesque

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

fdnhkj avatar Feb 05 '16 13:02 fdnhkj