Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pytest-server-fixtures: Explicitly close initial Mongo client
When checking the Mongo server has come up properly, the `MongoTestServer` class first creates a `pymongo.MongoClient` with a short timeout to avoid waiting a long time in the failure case. After this it creates another client with the default timeouts, but prior to this change, the initial client is not closed. This change explicitly closes the initial client after use.
- Loading branch information