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:
Eugene Nikanorov 2014-03-12 12:35:45 +04:00
parent 3d6d2f5e99
commit d37fa7e6f3
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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()