Fix broken strategy unit test from earlier change

This commit is contained in:
James Cammarata 2015-07-20 15:47:29 -04:00
parent 3de6f264dd
commit fadd8f23f1

View file

@ -253,7 +253,8 @@ class TestStrategyBase(unittest.TestCase):
self.assertEqual(strategy_base._pending_results, 1)
self.assertIn('test01', strategy_base._blocked_hosts)
queue_items.append(('notify_handler', mock_host, 'test handler'))
task_result = TaskResult(host=mock_host, task=mock_task, return_data=dict(changed=True))
queue_items.append(('notify_handler', task_result, 'test handler'))
results = strategy_base._process_pending_results(iterator=mock_iterator)
self.assertEqual(len(results), 0)
self.assertEqual(strategy_base._pending_results, 1)