]> git.puffer.fish Git - matthieu/frr.git/commit
tests: Fix random failure in test_PIM_hello_tx_rx_p1
authorMobashshera Rasool <mrasool@vmware.com>
Sun, 16 Jan 2022 08:25:23 +0000 (00:25 -0800)
committerMobashshera Rasool <mrasool@vmware.com>
Sun, 16 Jan 2022 12:00:11 +0000 (04:00 -0800)
commit3996d25e3ce6376a21fe7fe020afa4c6e9a40306
tree3e1e485e5041d9a8cdab352a32f80a596bde18d0
parent2aa2e5932076a1f8dd641056a2f27cd7bd36f4af
tests: Fix random failure in test_PIM_hello_tx_rx_p1

The test case test_PIM_hello_tx_rx_p1 is failing randomly because
sometimes the hello packet is received and sometimes not received while getting
the stats data.
When the hello packet is received HelloRx gets incremented to 1 and then
shutdown of the interface is executed which resets the stats to 0
and again when "no shutdown" of the interface is done, the stats get incremented to 1.
The test case checks after "no shutdown" of the interface whether the stats is incremented
but in this case although the stats got incremented the before and after value is same.
Hence the test case failed.

Adding correct expectations in the test case.

Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
tests/topotests/multicast_pim_sm_topo3/test_multicast_pim_sm_topo4.py