You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ariatosca.apache.org by da...@apache.org on 2016/11/08 12:29:17 UTC

[09/11] incubator-ariatosca git commit: improve test

improve test


Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/5cdf1484
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/5cdf1484
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/5cdf1484

Branch: refs/heads/ARIA-10-task-retries
Commit: 5cdf1484b00bde3ba1729f06e0f808067a6feb47
Parents: b113b5e
Author: Dan Kilman <da...@gigaspaces.com>
Authored: Tue Nov 8 12:57:31 2016 +0200
Committer: Dan Kilman <da...@gigaspaces.com>
Committed: Tue Nov 8 12:57:31 2016 +0200

----------------------------------------------------------------------
 tests/workflows/core/test_engine.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/5cdf1484/tests/workflows/core/test_engine.py
----------------------------------------------------------------------
diff --git a/tests/workflows/core/test_engine.py b/tests/workflows/core/test_engine.py
index 8380470..27eb0a7 100644
--- a/tests/workflows/core/test_engine.py
+++ b/tests/workflows/core/test_engine.py
@@ -182,7 +182,8 @@ class TestEngine(BaseTest):
         def sub_workflow(ctx, graph):
             op1 = self._op(mock_ordered_task, ctx, inputs={'counter': 1})
             op2 = api.task.StubTask()
-            graph.sequence(op1, op2)
+            op3 = self._op(mock_ordered_task, ctx, inputs={'counter': 2})
+            graph.sequence(op1, op2, op3)
 
         @workflow
         def mock_workflow(ctx, graph):
@@ -194,8 +195,8 @@ class TestEngine(BaseTest):
 
         assert workflow_context.states == ['start', 'success']
         assert workflow_context.exception is None
-        assert global_test_holder.get('invocations') == [1]
-        assert global_test_holder.get('sent_task_signal_calls') == 1
+        assert global_test_holder.get('invocations') == [1, 2]
+        assert global_test_holder.get('sent_task_signal_calls') == 2
 
 
 def mock_success_task():