Skip to content

Commit 3c5aec1

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Stabilize unshelve notification sample tests"
2 parents 9b98bbd + 40f1e7c commit 3c5aec1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nova/tests/functional/notification_sample_tests/test_instance.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ def _test_shelve_and_shelve_offload_server(self, server):
816816

817817
self.api.post_server_action(server['id'], {'unshelve': None})
818818
self._wait_for_state_change(self.api, server, 'ACTIVE')
819+
self._wait_for_notification('instance.unshelve.end')
819820

820821
def _test_unshelve_server(self, server):
821822
# setting the shelved_offload_time to 0 should set the
@@ -833,6 +834,7 @@ def _test_unshelve_server(self, server):
833834
post = {'unshelve': None}
834835
self.api.post_server_action(server['id'], post)
835836
self._wait_for_state_change(self.admin_api, server, 'ACTIVE')
837+
self._wait_for_notification('instance.unshelve.end')
836838
self.assertEqual(9, len(fake_notifier.VERSIONED_NOTIFICATIONS))
837839
self._verify_notification(
838840
'instance-unshelve-start',

0 commit comments

Comments
 (0)