We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d69f0d commit e41ecc4Copy full SHA for e41ecc4
src/pytest_mock_resources/container/mongo.py
@@ -43,7 +43,7 @@ def check_fn(self):
43
client = pymongo.MongoClient(self.host, self.port, timeoutMS=1000)
44
db = client[self.root_database]
45
db.command("ismaster")
46
- except (pymongo.errors.ConnectionFailure, pymongo.errors.PyMongoError):
+ except pymongo.errors.PyMongoError:
47
raise ContainerCheckFailed(
48
f"Unable to connect to a presumed MongoDB test container via given config: {self}"
49
)
0 commit comments