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:
parent
1fbbadb65a
commit
421b03325b
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user