Skip to content
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

Added windows specific code to check if mock service is stopped. #79

Conversation

shahha
Copy link

@shahha shahha commented Mar 6, 2018

I was getting error while using pact-python in windows 10 'There was an error when stopping the Pact mock service.' Same code was running without any error in Ubuntu.
While digging a bit found out that checking self._process.returncode != 0 does not work with windows as in my case windows was returning return code as 15.
So now for windows I am checking if process still exists using psutil.pid_exists to determine if mock service is stopped or not.

@bethesque
Copy link
Member

You wouldn't believe the fun and games I've had trying to ensure the mock process shuts down nicely on Windows!

@shahha
Copy link
Author

shahha commented Mar 16, 2018

Sorry as I am new here, do I have to inform someone to merge this PR?

@bethesque
Copy link
Member

Matthew will do it when he has time. It will be in his backlog!

@bethesque
Copy link
Member

Sorry, just for context, I work on the underlying ruby code (not the python). I just keep an eye on the python issues because a lot of the python issues are actually issues with the ruby code.

@matthewbalvanz-wf
Copy link
Contributor

Sorry for the delay. Thanks for the contribution @shahha !

@matthewbalvanz-wf matthewbalvanz-wf merged commit eecbb60 into pact-foundation:master Mar 16, 2018
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.

4 participants