Increase the waiting period to receive a port creation event
This patchs increases to 15 seconds the timeout to wait for a port creation event in ``WaitForPortCreateEvent``. This patch is also adding the update "event" to the tracked events, just in case if the "create" event has been ignored before. Closes-Bug: #2020663 Change-Id: I37d15de1be74a3cbdfbc9b53bbefbeb90663f1d9
This commit is contained in:
parent
d242792c47
commit
9e6675ec06
@ -42,10 +42,10 @@ class WaitForPortCreateEvent(event.WaitEvent):
|
|||||||
|
|
||||||
def __init__(self, port_name):
|
def __init__(self, port_name):
|
||||||
table = 'Port'
|
table = 'Port'
|
||||||
events = (self.ROW_CREATE,)
|
events = (self.ROW_CREATE, self.ROW_UPDATE)
|
||||||
conditions = (('name', '=', port_name),)
|
conditions = (('name', '=', port_name),)
|
||||||
super(WaitForPortCreateEvent, self).__init__(
|
super(WaitForPortCreateEvent, self).__init__(
|
||||||
events, table, conditions, timeout=5)
|
events, table, conditions, timeout=15)
|
||||||
|
|
||||||
|
|
||||||
class BaseOVSTestCase(base.BaseSudoTestCase):
|
class BaseOVSTestCase(base.BaseSudoTestCase):
|
||||||
|
Loading…
Reference in New Issue
Block a user