From f5a6cd144f817da40c3981165538dcb941dc5277 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Tue, 14 Oct 2025 06:50:04 +0000 Subject: [PATCH] [UT] Allow any call order in ``test_send_ipv4_addr_adv_notif`` The test ``test_send_ipv4_addr_adv_notif`` is failing because it is expected to find a list of calls in the same order. In [1], the sleep time was reduced to 0 in order to immediately execute the expected calls, avoiding the interference of other parallel executions. However this is not always happening. This patch allows to check the expected calls in any order, that allows the presence of other commands in the call list. [1]https://review.opendev.org/c/openstack/neutron/+/939435 Closes-Bug: #2095044 Signed-off-by: Rodolfo Alonso Hernandez Change-Id: I7eaf374a84cbb24d6e0081080624589920629197 --- neutron/tests/unit/agent/linux/test_ip_lib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neutron/tests/unit/agent/linux/test_ip_lib.py b/neutron/tests/unit/agent/linux/test_ip_lib.py index d169f98888f..d11c71f4a07 100644 --- a/neutron/tests/unit/agent/linux/test_ip_lib.py +++ b/neutron/tests/unit/agent/linux/test_ip_lib.py @@ -1110,7 +1110,8 @@ class TestArpPing(TestIPCmdBase): mock.call().netns.execute(mock.ANY, extra_ok_codes=[1, 2], privsep_exec=True), mock.call().netns.execute(mock.ANY, extra_ok_codes=[1, 2], - privsep_exec=True)]) + privsep_exec=True)], + any_order=True) ip_wrapper = mIPWrapper(namespace=mock.sentinel.ns_name)