Signed-off-by: Xavier Simonart <[email protected]>
---
 tests/ovn-controller.at | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/ovn-controller.at b/tests/ovn-controller.at
index 7904cbe37..c9d96f650 100644
--- a/tests/ovn-controller.at
+++ b/tests/ovn-controller.at
@@ -3415,6 +3415,11 @@ AT_CHECK([test 0 = $(grep -c "HANDLER_MESSAGE" 
hv1/ovn-controller.log)])
 # causes recompute.
 check ovs-vsctl add-port br-int vif -- \
     set Interface vif type=dummy
+
+# Ensure ovn-controller runs and handles previous change before setting
+# iface-id, so it's seen in a different transaction.
+check ovn-nbctl --wait=hv sync
+
 check ovs-vsctl set Interface vif external-ids:iface-id=vif
 wait_row_count Port_Binding 1 logical_port="vif" up=true
 AT_CHECK([test $(grep -c "HANDLER_MESSAGE" hv1/ovn-controller.log) -ge 1])
-- 
2.47.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to