summaryrefslogtreecommitdiff
path: root/tests/topotests/pim_basic/test_pim.py
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2021-11-05 14:43:21 -0500
committerGitHub <noreply@github.com>2021-11-05 14:43:21 -0500
commit6fbd4db123dc44a76c1f2579042a6a829c2a4c5f (patch)
tree5b12449b701f9b457219588226b72484872fcd30 /tests/topotests/pim_basic/test_pim.py
parented79d896b2682886bb4935a7782b2ded7c283981 (diff)
parentb4bee329d22c36c0fee2665077cc5c9e5b4e3bb5 (diff)
Merge pull request #9975 from donaldsharp/pim_basic_timings
tests: pim_basic needs to wait for event to happen under load
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()