diff --git a/ipyparallel/tests/test_mongodb.py b/ipyparallel/tests/test_mongodb.py index fe019203..45616a50 100644 --- a/ipyparallel/tests/test_mongodb.py +++ b/ipyparallel/tests/test_mongodb.py @@ -31,7 +31,8 @@ def mongo_conn(request): conn_kwargs['port'] = int(os.environ['DB_PORT']) try: - c = MongoClient(**conn_kwargs) + c = MongoClient(**conn_kwargs, serverSelectionTimeoutMS=2000) + servinfo = c.server_info() except Exception: c = None if c is not None: