diff --git a/fixed-requirements.txt b/fixed-requirements.txt index 3edd075ab0..df04b8206b 100644 --- a/fixed-requirements.txt +++ b/fixed-requirements.txt @@ -14,7 +14,7 @@ requests[security]>=2.13.0,<2.14 apscheduler==3.3.1 gitpython==2.1.3 jsonschema>=2.5.0,<2.6 -mongoengine==0.13.0 +mongoengine==0.11.0 pymongo==3.4.0 passlib==1.6.5 lockfile>=0.10.2,<0.11 diff --git a/requirements.txt b/requirements.txt index 6fa54902cd..204e049abf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ jsonschema<2.6,>=2.5.0 kombu==3.0.37 lockfile<0.11,>=0.10.2 mock -mongoengine==0.13.0 +mongoengine==0.11.0 networkx==1.10 nose oslo.config<1.13,>=1.12.1 diff --git a/st2actions/tests/unit/policies/test_concurrency.py b/st2actions/tests/unit/policies/test_concurrency.py index 54ebe4e4f3..78af2635f7 100644 --- a/st2actions/tests/unit/policies/test_concurrency.py +++ b/st2actions/tests/unit/policies/test_concurrency.py @@ -248,7 +248,7 @@ def test_on_cancellation(self): # Since states are being processed asynchronously, wait for the # liveactions to go into scheduled states. for i in range(0, 100): - eventlet.sleep(2) + eventlet.sleep(1) scheduled = [item for item in LiveAction.get_all() if item.status in SCHEDULED_STATES] if len(scheduled) == policy_db.parameters['threshold']: break @@ -272,7 +272,7 @@ def test_on_cancellation(self): # Since states are being processed asynchronously, wait for the # liveaction to go into delayed state. for i in range(0, 100): - eventlet.sleep(2) + eventlet.sleep(1) liveaction = LiveAction.get_by_id(str(liveaction.id)) if liveaction.status == action_constants.LIVEACTION_STATUS_DELAYED: break @@ -291,7 +291,7 @@ def test_on_cancellation(self): # Since states are being processed asynchronously, wait for the # liveaction to go into scheduled state. for i in range(0, 100): - eventlet.sleep(2) + eventlet.sleep(1) liveaction = LiveAction.get_by_id(str(liveaction.id)) if liveaction.status in SCHEDULED_STATES: break