Skip to content

Commit

Permalink
tests: Fix flaky "ovn-controller - restart ...".
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Simonart <xsimonar@redhat.com>
Acked-by: Ales Musil <amusil@redhat.com>
Signed-off-by: Numan Siddique <numans@ovn.org>
  • Loading branch information
simonartxavier authored and numansiddique committed Jun 12, 2024
1 parent 4ea3a1e commit 4e3115f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/ovn-controller.at
Original file line number Diff line number Diff line change
Expand Up @@ -2487,7 +2487,8 @@ check ovn-nbctl lsp-add ls-ext lsp-ext \
-- lsp-set-addresses lsp-ext unknown
check ovn-nbctl --wait=hv sync

AT_CHECK([ovs-vsctl list-ports br-int | grep patch-br-int-to-lsp-ext], [0], [ignore])
# Patch port might be created by ovn-controller after handling nb_cfg sync, if ovs db is busy handling command.
OVS_WAIT_UNTIL([test 1 = $(ovs-vsctl list-ports br-int | grep patch-br-int-to-lsp-ext | wc -l)])

# Stop ovn-controller
OVS_APP_EXIT_AND_WAIT([ovn-controller])
Expand Down

0 comments on commit 4e3115f

Please sign in to comment.