summaryrefslogtreecommitdiff
path: root/tests/topotests/pim_basic/test_pim.py
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-11-05 11:49:37 -0400
committerDonald Sharp <sharpd@nvidia.com>2021-11-05 11:50:46 -0400
commitb4bee329d22c36c0fee2665077cc5c9e5b4e3bb5 (patch)
tree609522e1cb117bef7cb0e46b1b0dd0a3b791d006 /tests/topotests/pim_basic/test_pim.py
parent4c90fecf248ec59a856a68eb70ab4015ccf46524 (diff)
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>
Diffstat (limited to 'tests/topotests/pim_basic/test_pim.py')
-rw-r--r--tests/topotests/pim_basic/test_pim.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/topotests/pim_basic/test_pim.py b/tests/topotests/pim_basic/test_pim.py
index 03b4368e42..6cea521aa9 100644
--- a/tests/topotests/pim_basic/test_pim.py
+++ b/tests/topotests/pim_basic/test_pim.py
@@ -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()