Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

Make pg_ctl stop not wait for the server to stop, fixing a possible test hang #146

Conversation

mmaslowskicc
Copy link
Collaborator

Waiting for server to stop seems unnecessary, and disabling it (via the -W option) seems to fix fixture teardown hang (killing the pytest worker process) when using xdist in a project using pytest-dbfixtures.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 95.385% when pulling dfb93ad on mmaslowskicc:do-not-wait-for-pgctl-stop into 5cd253e on ClearcodeHQ:master.

@mmaslowskicc
Copy link
Collaborator Author

Ok, this wait is needed to avoid a race condition when deleting files.

@fizyk
Copy link
Member

fizyk commented Apr 4, 2016

@mmaslowskicc hey, could you maybe extend a dosctring, add comment with your discoveries? Otherwise that information would be lost again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants