diff --git a/nova/tests/functional/notification_sample_tests/test_instance.py b/nova/tests/functional/notification_sample_tests/test_instance.py index 4db2ef596975..9743f73627ff 100644 --- a/nova/tests/functional/notification_sample_tests/test_instance.py +++ b/nova/tests/functional/notification_sample_tests/test_instance.py @@ -752,6 +752,7 @@ class TestInstanceNotificationSample( self.api.post_server_action(server['id'], {'unshelve': None}) self._wait_for_state_change(self.api, server, 'ACTIVE') + self._wait_for_notification('instance.unshelve.end') def _test_unshelve_server(self, server): # setting the shelved_offload_time to 0 should set the @@ -769,6 +770,7 @@ class TestInstanceNotificationSample( post = {'unshelve': None} self.api.post_server_action(server['id'], post) self._wait_for_state_change(self.admin_api, server, 'ACTIVE') + self._wait_for_notification('instance.unshelve.end') self.assertEqual(7, len(fake_notifier.VERSIONED_NOTIFICATIONS)) self._verify_notification( 'instance-unshelve-start',