937db90146
The test_live_migration_abort test step in the test_live_migration_actions notification sample test was unstable. The test starts a live migration and then deletes the migration object via the REST API to abort it. The test randomly failed to find the migration object on the REST API. Based on the comparision of the logs of the successful and unsuccesful runs it was visible that in the unsuccesful case the test gave up to wait for the migration object too early. In a succesful run it took 1.5 seconds after the the migration API call to have the migration object appear on the API while in an unsuccessful case the test gave up after 1 second. This early give up was cause by the fact that the loop trying to get a migration does not applied any delay between such trials and therefore the 20 attempts run out quickly. This patch introduces a short sleep between trials to stabilize the test. Change-Id: I6be3b236d8eadcde5714c08069708dff303dfd4d Closes-Bug: #1736976 |
||
---|---|---|
.. | ||
__init__.py | ||
notification_sample_base.py | ||
test_aggregate.py | ||
test_exception_notification.py | ||
test_flavor.py | ||
test_instance.py | ||
test_keypair.py | ||
test_server_group.py | ||
test_service.py |