Fix admin-utils unit test

NSX-V tests fails occasionally on counting running spawn (mocked) jobs.
This should be skipped.

Change-Id: I06de1fdb870dec65c2951def6214cd7140669894
This commit is contained in:
Adit Sarfaty 2017-03-05 14:10:35 +02:00
parent 1fbbadb65a
commit 421b03325b
1 changed files with 5 additions and 0 deletions

View File

@ -132,6 +132,11 @@ class TestNsxvAdminUtils(AbstractTestAdminUtils,
'NsxvEdgeCfgObj.get_object',
return_value=dummy_lb).start()
# Tests shouldn't wait for dummy spawn jobs to finish
mock.patch('vmware_nsx.shell.admin.plugins.nsxv.resources.utils.'
'NsxVPluginWrapper.count_spawn_jobs',
return_value=0).start()
# Create a router to make sure we have deployed an edge
self.create_router()