diff options
author | Matt Martz <matt@sivel.net> | 2019-08-22 21:32:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-22 21:32:49 +0200 |
commit | 0ff9978bc51cc262233f1b02850de6f9dcee26a9 (patch) | |
tree | 7c68ac5b149d1c0acfc593f733d4c50e2e415443 /test/units/plugins/strategy | |
parent | Doc fixes for readability (formatting/punctuation) (#61086) (diff) | |
download | ansible-0ff9978bc51cc262233f1b02850de6f9dcee26a9.tar.xz ansible-0ff9978bc51cc262233f1b02850de6f9dcee26a9.zip |
Ensure has_dead_workers functions (#60653)
* Ensure has_dead_workers functions
* Fix up tests
* Add changelog. Fixes #29124
Diffstat (limited to 'test/units/plugins/strategy')
-rw-r--r-- | test/units/plugins/strategy/test_strategy_base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/units/plugins/strategy/test_strategy_base.py b/test/units/plugins/strategy/test_strategy_base.py index ed318ee50b..210cf76ee1 100644 --- a/test/units/plugins/strategy/test_strategy_base.py +++ b/test/units/plugins/strategy/test_strategy_base.py @@ -64,6 +64,7 @@ class TestStrategyBase(unittest.TestCase): mock_tqm = MagicMock(TaskQueueManager) mock_tqm._final_q = mock_queue + mock_tqm._workers = [] strategy_base = StrategyBase(tqm=mock_tqm) strategy_base.cleanup() @@ -103,6 +104,7 @@ class TestStrategyBase(unittest.TestCase): mock_tqm._failed_hosts = dict() mock_tqm._unreachable_hosts = dict() + mock_tqm._workers = [] strategy_base = StrategyBase(tqm=mock_tqm) mock_host = MagicMock() |