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:
Rodolfo Alonso Hernandez 2023-05-24 01:54:14 +02:00
parent d242792c47
commit 9e6675ec06

View File

@ -42,10 +42,10 @@ class WaitForPortCreateEvent(event.WaitEvent):
def __init__(self, port_name):
table = 'Port'
events = (self.ROW_CREATE,)
events = (self.ROW_CREATE, self.ROW_UPDATE)
conditions = (('name', '=', port_name),)
super(WaitForPortCreateEvent, self).__init__(
events, table, conditions, timeout=5)
events, table, conditions, timeout=15)
class BaseOVSTestCase(base.BaseSudoTestCase):