summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2015-04-12 12:20:53 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2015-04-12 12:20:53 +0200
commitc58a190b12535bdcfc984b1be8b72a6a2c84a2a8 (patch)
tree70c93862810b98b96c547de2badb722dc65ef76f
parentae5d46af448fc33ef74eee99c5a3d686c8d26e72 (diff)
downloadfactory-boy-c58a190b12535bdcfc984b1be8b72a6a2c84a2a8.tar
factory-boy-c58a190b12535bdcfc984b1be8b72a6a2c84a2a8.tar.gz
mongoengine: allow tuning the server timeout.
So that it doesn't fail on ci...
-rw-r--r--tests/test_mongoengine.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_mongoengine.py b/tests/test_mongoengine.py
index c0a019c..1cf0cb5 100644
--- a/tests/test_mongoengine.py
+++ b/tests/test_mongoengine.py
@@ -61,7 +61,7 @@ class MongoEngineTestCase(unittest.TestCase):
db_name = os.environ.get('MONGO_DATABASE', 'factory_boy_test')
db_host = os.environ.get('MONGO_HOST', 'localhost')
db_port = int(os.environ.get('MONGO_PORT', '27017'))
- MONGOD_TIMEOUT_MS = 100
+ server_timeout_ms = int(os.environ.get('MONGO_TIMEOUT', '300'))
@classmethod
def setUpClass(cls):