]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: increase timeout to avoid intermittent LDP Sync test failure 7130/head
authorKaren Schoener <karen@volta.io>
Fri, 18 Sep 2020 17:54:51 +0000 (13:54 -0400)
committerKaren Schoener <karen@volta.io>
Fri, 18 Sep 2020 17:59:09 +0000 (13:59 -0400)
Signed-off-by: Karen Schoener <karen@voltanet.io>
tests/topotests/ldp-sync-isis-topo1/test_ldp_sync_isis_topo1.py
tests/topotests/ldp-sync-ospf-topo1/test_ldp_sync_ospf_topo1.py

index 1dce698c177dc90b4a6aaa56cebaff78350af5bb..bdbe6e0f317f60a93420b258660ef2523d86c8a0 100755 (executable)
@@ -163,9 +163,9 @@ def router_compare_json_output(rname, command, reference):
     filename = "{}/{}/{}".format(CWD, rname, reference)
     expected = json.loads(open(filename).read())
 
-    # Run test function until we get an result. Wait at most 80 seconds.
+    # Run test function until we get an result.
     test_func = partial(topotest.router_json_cmp, tgen.gears[rname], command, expected)
-    _, diff = topotest.run_and_expect(test_func, None, count=160, wait=0.5)
+    _, diff = topotest.run_and_expect(test_func, None, count=320, wait=0.5)
     assertmsg = '"{}" JSON output mismatches the expected result'.format(rname)
     assert diff is None, assertmsg
 
index dc6a76eb490b4a90dd49cdcb7196580855c3f536..46f3cde0861b5fd4cf466d396117644c291af1d3 100755 (executable)
@@ -162,9 +162,9 @@ def router_compare_json_output(rname, command, reference):
     filename = "{}/{}/{}".format(CWD, rname, reference)
     expected = json.loads(open(filename).read())
 
-    # Run test function until we get an result. Wait at most 80 seconds.
+    # Run test function until we get an result.
     test_func = partial(topotest.router_json_cmp, tgen.gears[rname], command, expected)
-    _, diff = topotest.run_and_expect(test_func, None, count=160, wait=0.5)
+    _, diff = topotest.run_and_expect(test_func, None, count=320, wait=0.5)
     assertmsg = '"{}" JSON output mismatches the expected result'.format(rname)
     assert diff is None, assertmsg