Skip to content

Conversation

@cakemanny
Copy link

Fixes an issue with the mock server that is use when PACT_USE_MOCKING_SERVER=yes.

Said mock server is run in a separate process, and if the process isn't bound to the port yet, connections will be refused.
This adds a notification mechanism so that the mock server is started and listening before any interactions begin.
Specifically, it hooks into the server_activate() in HTTPServer's base class

I'm aware that this pull request is unlikely to be merged as the repo has no recent activity. But perhaps this fix is useful to a potential future forker.

Fixes the mock sever that is use when `PACT_USE_MOCKING_SERVER=yes`.
Adds a notification mechanism so that the mock server is started and
listening before interactions begin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant