diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2022-04-01 17:29:10 -0500 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2022-04-01 17:29:22 -0500 |
commit | 026b627c63124c885ff734d3b30a15464f9b0c93 (patch) | |
tree | 83881a14dd211dd8076c91767764c736628bc6a5 /tests | |
parent | 5bc8ff228822201f91708136badb350a84623573 (diff) | |
download | requests-cache-026b627c63124c885ff734d3b30a15464f9b0c93.tar.gz |
Wait a bit longer for MongoDB to spin up for integration tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/test_mongodb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/test_mongodb.py b/tests/integration/test_mongodb.py index 1aa2af3..c798e1c 100644 --- a/tests/integration/test_mongodb.py +++ b/tests/integration/test_mongodb.py @@ -19,12 +19,12 @@ from tests.integration.base_storage_test import BaseStorageTest @pytest.fixture(scope='module', autouse=True) -@fail_if_no_connection() +@fail_if_no_connection(connect_timeout=2) def ensure_connection(): """Fail all tests in this module if MongoDB is not running""" from pymongo import MongoClient - client = MongoClient(serverSelectionTimeoutMS=200) + client = MongoClient(serverSelectionTimeoutMS=2000) client.server_info() |