Repository: incubator-ariatosca Updated Branches: refs/heads/ARIA-128-test-engine-failures [created] 1d4b13770
ARIA-128 Make test_engine more robust Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/1d4b1377 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/1d4b1377 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/1d4b1377 Branch: refs/heads/ARIA-128-test-engine-failures Commit: 1d4b137701c7e3a1f8c1200fd196a4f775a45f4e Parents: 3bb7e4c Author: Tal Liron <[email protected]> Authored: Tue Apr 11 15:26:43 2017 -0500 Committer: Tal Liron <[email protected]> Committed: Tue Apr 11 15:26:43 2017 -0500 ---------------------------------------------------------------------- tests/orchestrator/workflows/core/test_engine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/1d4b1377/tests/orchestrator/workflows/core/test_engine.py ---------------------------------------------------------------------- diff --git a/tests/orchestrator/workflows/core/test_engine.py b/tests/orchestrator/workflows/core/test_engine.py index 6f97952..0b48870 100644 --- a/tests/orchestrator/workflows/core/test_engine.py +++ b/tests/orchestrator/workflows/core/test_engine.py @@ -237,7 +237,8 @@ class TestCancel(BaseTest): t.start() time.sleep(10) eng.cancel_execution() - t.join(timeout=30) + t.join(timeout=60) # we need to give this a *lot* of time because Travis can be *very* slow + assert not t.is_alive() # if join is timed out it will not raise an exception assert workflow_context.states == ['start', 'cancel'] assert workflow_context.exception is None invocations = global_test_holder.get('invocations', [])
