Fix unittest failure in radware lbaas driver
Wait for vip delete completion before deleting network and subnet. Also fix indentation in the driver Closes-Bug: #1288312 Change-Id: I88b3252102d6c4a60bbadf2951bbb74fcd19792b
This commit is contained in:
parent
3d6d2f5e99
commit
d37fa7e6f3
@ -651,8 +651,8 @@ class OperationCompletionHandler(threading.Thread):
|
||||
|
||||
LOG.debug('Operation consumed from the queue: ' +
|
||||
str(oper))
|
||||
# check the status - if oper is done: update the db ,
|
||||
# else push the oper again to the queue
|
||||
# check the status - if oper is done: update the db ,
|
||||
# else push the oper again to the queue
|
||||
result = self.rest_client.call('GET',
|
||||
oper.operation_url,
|
||||
None,
|
||||
|
@ -232,8 +232,8 @@ class TestLoadBalancerPlugin(TestLoadBalancerPluginBase):
|
||||
None, None)
|
||||
]
|
||||
self.rest_call_mock.assert_has_calls(calls, any_order=True)
|
||||
# need to switch greenthreads in order to let driver delete vip
|
||||
eventlet.greenthread.sleep(0)
|
||||
# need to wait some time to allow driver to delete vip
|
||||
eventlet.greenthread.sleep(1)
|
||||
|
||||
def test_update_vip(self):
|
||||
self.rest_call_mock.reset_mock()
|
||||
|
Loading…
x
Reference in New Issue
Block a user