Repository: incubator-ariatosca Updated Branches: refs/heads/build_fail_poc f2f9d689c -> 48bbeb4c9
added some more daemons Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/48bbeb4c Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/48bbeb4c Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/48bbeb4c Branch: refs/heads/build_fail_poc Commit: 48bbeb4c90f37b6b63a7f38363c0c045d8db2071 Parents: f2f9d68 Author: max-orlov <[email protected]> Authored: Mon Jul 3 16:08:56 2017 +0300 Committer: max-orlov <[email protected]> Committed: Mon Jul 3 16:08:56 2017 +0300 ---------------------------------------------------------------------- tests/orchestrator/workflows/core/test_engine.py | 1 + tests/utils/test_threading.py | 1 + 2 files changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/48bbeb4c/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 21a53d7..0c704f5 100644 --- a/tests/orchestrator/workflows/core/test_engine.py +++ b/tests/orchestrator/workflows/core/test_engine.py @@ -257,6 +257,7 @@ class TestCancel(BaseTest): workflow_context=workflow_context, executor=executor) t = threading.Thread(target=eng.execute, kwargs=dict(ctx=workflow_context)) + t.daemon = True t.start() time.sleep(10) eng.cancel_execution(workflow_context) http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/48bbeb4c/tests/utils/test_threading.py ---------------------------------------------------------------------- diff --git a/tests/utils/test_threading.py b/tests/utils/test_threading.py index d24661f..65f0254 100644 --- a/tests/utils/test_threading.py +++ b/tests/utils/test_threading.py @@ -25,6 +25,7 @@ def test_exception_raised_from_thread(): raise ValueError('This is an error') thread = threading.ExceptionThread(target=error_raising_func) + thread.daemon = True thread.start() thread.join()
