mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix strategy plugin unit tests related to earlier changes
This commit is contained in:
parent
da307c8bfd
commit
bfbb88b4a9
1 changed files with 2 additions and 2 deletions
|
@ -261,12 +261,12 @@ class TestStrategyBase(unittest.TestCase):
|
|||
self.assertIn('test handler', strategy_base._notified_handlers)
|
||||
self.assertIn(mock_host, strategy_base._notified_handlers['test handler'])
|
||||
|
||||
queue_items.append(('set_host_var', mock_host, 'foo', 'bar'))
|
||||
queue_items.append(('set_host_var', mock_host, mock_task, None, 'foo', 'bar'))
|
||||
results = strategy_base._process_pending_results(iterator=mock_iterator)
|
||||
self.assertEqual(len(results), 0)
|
||||
self.assertEqual(strategy_base._pending_results, 1)
|
||||
|
||||
queue_items.append(('set_host_facts', mock_host, 'foo', dict()))
|
||||
queue_items.append(('set_host_facts', mock_host, mock_task, None, 'foo', dict()))
|
||||
results = strategy_base._process_pending_results(iterator=mock_iterator)
|
||||
self.assertEqual(len(results), 0)
|
||||
self.assertEqual(strategy_base._pending_results, 1)
|
||||
|
|
Loading…
Reference in a new issue