From 0ff9978bc51cc262233f1b02850de6f9dcee26a9 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Thu, 22 Aug 2019 14:32:49 -0500 Subject: Ensure has_dead_workers functions (#60653) * Ensure has_dead_workers functions * Fix up tests * Add changelog. Fixes #29124 --- test/units/plugins/strategy/test_strategy_base.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/units/plugins/strategy') 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() -- cgit v1.2.3