From 6eef45a7752dec139adfae679b408978a115b2a2 Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Thu, 2 Mar 2017 15:18:36 +0000 Subject: [PATCH] Remove the delay from the direct workflow rerun tests The 10 second delay was overly generous. This change reduces the test run time by around 25-30 seconds. Related-Bug: #1669511 Change-Id: I55ded366162b4124f795c341d4bae919b09f468e --- .../unit/engine/test_direct_workflow_rerun.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/mistral/tests/unit/engine/test_direct_workflow_rerun.py b/mistral/tests/unit/engine/test_direct_workflow_rerun.py index e2b5a6b7..e1b9f9e2 100644 --- a/mistral/tests/unit/engine/test_direct_workflow_rerun.py +++ b/mistral/tests/unit/engine/test_direct_workflow_rerun.py @@ -559,7 +559,7 @@ class DirectWorkflowRerunTest(base.EngineTestCase): self.assertEqual(states.RUNNING, wf_ex.state) self.assertIsNone(wf_ex.state_info) - self.await_workflow_success(wf_ex.id, delay=10) + self.await_workflow_success(wf_ex.id) with db_api.transaction(): wf_ex = db_api.get_workflow_execution(wf_ex.id) @@ -646,7 +646,7 @@ class DirectWorkflowRerunTest(base.EngineTestCase): self.assertEqual(states.RUNNING, wf_ex.state) self.assertIsNone(wf_ex.state_info) - self.await_workflow_success(wf_ex.id, delay=10) + self.await_workflow_success(wf_ex.id) wf_ex = db_api.get_workflow_execution(wf_ex.id) @@ -739,7 +739,7 @@ class DirectWorkflowRerunTest(base.EngineTestCase): self.assertEqual(states.RUNNING, wf_ex.state) self.assertIsNone(wf_ex.state_info) - self.await_workflow_success(wf_ex.id, delay=10) + self.await_workflow_success(wf_ex.id) with db_api.transaction(): wf_ex = db_api.get_workflow_execution(wf_ex.id) @@ -1088,7 +1088,7 @@ class DirectWorkflowRerunTest(base.EngineTestCase): self.assertEqual(states.RUNNING, wf_ex.state) self.assertIsNone(wf_ex.state_info) - self.await_workflow_error(wf_ex.id, delay=10) + self.await_workflow_error(wf_ex.id) wf_ex = db_api.get_workflow_execution(wf_ex.id) @@ -1109,7 +1109,7 @@ class DirectWorkflowRerunTest(base.EngineTestCase): self.assertEqual(states.RUNNING, wf_ex.state) self.assertIsNone(wf_ex.state_info) - self.await_workflow_error(wf_ex.id, delay=10) + self.await_workflow_error(wf_ex.id) wf_ex = db_api.get_workflow_execution(wf_ex.id) @@ -1130,7 +1130,7 @@ class DirectWorkflowRerunTest(base.EngineTestCase): self.assertEqual(states.RUNNING, wf_ex.state) self.assertIsNone(wf_ex.state_info) - self.await_workflow_error(wf_ex.id, delay=10) + self.await_workflow_error(wf_ex.id) wf_ex = db_api.get_workflow_execution(wf_ex.id) @@ -1151,7 +1151,7 @@ class DirectWorkflowRerunTest(base.EngineTestCase): self.assertEqual(states.RUNNING, wf_ex.state) self.assertIsNone(wf_ex.state_info) - self.await_workflow_success(wf_ex.id, delay=10) + self.await_workflow_success(wf_ex.id) with db_api.transaction(): wf_ex = db_api.get_workflow_execution(wf_ex.id)