Skip to content

Commit 9854c4c

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "[FT] Improve test_assert_pings_during_br_phys_setup_not_lost* tests" into stable/2025.1
2 parents 31decc6 + b86123a commit 9854c4c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

neutron/tests/functional/agent/test_l2_ovs_agent.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,9 @@ def _test_assert_pings_during_br_phys_setup_not_lost(self, provider_net):
302302
net_helpers.assert_ping(ns_phys, ip_int)
303303
net_helpers.assert_ping(self.namespace, ip_phys)
304304

305-
with net_helpers.async_ping(ns_phys, [ip_int]) as done:
305+
with net_helpers.async_ping(ns_phys, [ip_int, ip_phys]) as done:
306+
self.agent.setup_physical_bridges(self.agent.bridge_mappings)
306307
while not done():
307-
self.agent.setup_physical_bridges(self.agent.bridge_mappings)
308-
time.sleep(0.25)
309-
310-
with net_helpers.async_ping(self.namespace, [ip_phys]) as done:
311-
while not done():
312-
self.agent.setup_physical_bridges(self.agent.bridge_mappings)
313308
time.sleep(0.25)
314309

315310
def test_noresync_after_port_gone(self):

0 commit comments

Comments
 (0)