]> git.puffer.fish Git - mirror/frr.git/commit
tests: fix bfd-bgp-cbit-topo3 test 8555/head
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 23 Apr 2021 22:32:53 +0000 (01:32 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Fri, 23 Apr 2021 22:33:32 +0000 (01:33 +0300)
commitf49bdb86eb270a72b6f7714a5e6b881309019c96
tree341203bf1f1829819f6782d33ccf63be8f9a1b76
parentb38f1fd03dacfcd2536d96379f575156d3844ee9
tests: fix bfd-bgp-cbit-topo3 test

This test is completely incorrect on test_bfd_loss_intermediate step.
It shuts down the interface and then "waiting" for the BGP session to
fail. But instead of the actual wait it compares the output of "show bfd
peers" with the "up" state. As it does this comparison right after the
interface shutdown, the BFD session has not yet failed and the comparison
is always successful except very rare cases when the command takes a lot
of time to execute (due to the heavy load on CI system I suppose).

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
tests/topotests/bfd-bgp-cbit-topo3/r1/peers_down.json