From 9e6675ec06d3f37564d3fa328afdb9b816a5384e Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Wed, 24 May 2023 01:54:14 +0200 Subject: [PATCH] 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 --- neutron/tests/functional/agent/common/test_ovs_lib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/tests/functional/agent/common/test_ovs_lib.py b/neutron/tests/functional/agent/common/test_ovs_lib.py index e624eaf3be6..db806cec1f8 100644 --- a/neutron/tests/functional/agent/common/test_ovs_lib.py +++ b/neutron/tests/functional/agent/common/test_ovs_lib.py @@ -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):