diff options
Diffstat (limited to 'nova/tests/unit/compute/test_compute_mgr.py')
-rw-r--r-- | nova/tests/unit/compute/test_compute_mgr.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/nova/tests/unit/compute/test_compute_mgr.py b/nova/tests/unit/compute/test_compute_mgr.py index 526302de8a..17fcb0e99b 100644 --- a/nova/tests/unit/compute/test_compute_mgr.py +++ b/nova/tests/unit/compute/test_compute_mgr.py @@ -8315,9 +8315,14 @@ class ComputeManagerMigrationTestCase(test.NoDBTestCase, self.migration) mock_delete.assert_called_once_with(self.context, self.instance, self.migration) - mock_save.assert_called_with(expected_task_state= - [None, task_states.DELETING, - task_states.SOFT_DELETING]) + mock_save.assert_has_calls([ + mock.call( + expected_task_state=[ + None, task_states.DELETING, task_states.SOFT_DELETING, + ], + ), + mock.call(), + ]) mock_delete_scheduler_info.assert_called_once_with( self.context, self.instance.uuid) |