Fix excessive runtime of test test_migrate_within_cell
The test test_migrate_within_cell functional test takes 160 seconds to run. Seems like the cleanup after the test function takes the extra time. By looking at the test case it starts a migration then if that call returns 202 the test finishes. So the cleanup and the migration happen in parallel. By adding a wait for the server to finish migration removes the excessive run time. Change-Id: Ib4e1712d9724147ec8bdf90a1294041e62dfb136 Closes-Bug: #1858639
This commit is contained in:
parent
92a9779992
commit
7845c0cdd3
|
@ -94,5 +94,6 @@ class MultiCellSchedulerTestCase(test.TestCase,
|
|||
|
||||
# Force the server onto compute1 in cell1 so we do not accidentally
|
||||
# land on compute3 in cell2 and fail to migrate.
|
||||
self._test_create_and_migrate(expected_status=202,
|
||||
_, server = self._test_create_and_migrate(expected_status=202,
|
||||
az='nova:compute1')
|
||||
self._wait_for_state_change(server, 'VERIFY_RESIZE')
|
||||
|
|
Loading…
Reference in New Issue