Signed-off-by: Xavier Simonart <xsimo...@redhat.com>
---
 tests/ovn-northd.at | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/ovn-northd.at b/tests/ovn-northd.at
index 4eae1c67c..cfbd5f2ea 100644
--- a/tests/ovn-northd.at
+++ b/tests/ovn-northd.at
@@ -918,6 +918,10 @@ check as ovn-nb ovs-appctl -t ovsdb-server 
ovsdb-server/remove-remote "$conn"
 conn2=punix:`pwd`/special.sock
 check as ovn-nb ovs-appctl -t ovsdb-server ovsdb-server/add-remote "$conn2"
 
+# The reply of previous unixctl does not guarantee that ovsdb-server added the 
remote.
+# By running another unixctl command, we ensure that ovsdb-server had 
reconfigured the remotes.
+AT_CHECK([test 1 = $(as ovn-nb ovs-appctl -t ovsdb-server 
ovsdb-server/list-remotes | grep -c special.sock)])
+
 # ovn-northd won't respond to changes (because the nbdb connection dropped).
 check ovn-nbctl --db="${conn2#p}" ls-add sw1
 sleep 5
-- 
2.47.1

_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to