tests: pim_basic needs to wait for event to happen under load

The test system under load looks for upstream state only
1 time immediately after sending 2 streams of S,G data
flowing.  Give the system some time to process this
and ensure that it actually shows up in a small
amount of time.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2021-11-05 11:49:37 -04:00
parent 4c90fecf24
commit b4bee329d2

View File

@ -172,7 +172,11 @@ def test_pim_send_mcast_stream():
}
}
assert topotest.json_cmp(out, expected) is None, "failed to converge pim"
test_func = partial(
topotest.router_json_cmp, r1, "show ip pim upstream json", expected
)
_, result = topotest.run_and_expect(test_func, None, count=20, wait=1)
assert result is None, "failed to converge pim"
# tgen.mininet_cli()