Fix a race in the test.
@@ -19,7 +19,6 @@ import copy
import uuid
import mock
-import eventlet
from mock import call
import requests
import yaml
@@ -288,7 +287,7 @@ class MistralRunnerCancelTest(ExecutionDbTestCase):
liveaction = LiveActionDB(action=WF1_NAME, parameters=ACTION_PARAMS)
liveaction, execution = action_service.request(liveaction)
- eventlet.sleep(4)
+ MockLiveActionPublisherNonBlocking.wait_all()
liveaction = self._wait_on_status(liveaction, action_constants.LIVEACTION_STATUS_RUNNING)
mistral_context = liveaction.context.get('mistral', None)
