]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Make sure that we don't randomly fail the pylib ratelimiting tests.
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Fri, 3 Aug 2018 15:57:48 +0000 (15:57 +0000)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Fri, 3 Aug 2018 15:57:48 +0000 (15:57 +0000)
git-svn-id: file:///svn/unbound/trunk@4829 be551aaa-1e26-0410-a405-d3ace91eadb9

testdata/pylib.tdir/pylib.lookup.py

index d45333d76c19e0d9155029dfd9c9910ba814c527..5f69c58abd1868d06e3e0f98a344c83ff2c2c19f 100755 (executable)
@@ -75,6 +75,7 @@ def test_ratelimit_fg_on(ctx):
 
     """
     ctx.set_option("ratelimit:", "1")
+    ctx.set_option("ratelimit-factor:", "0")
     status, result = ctx.resolve(qname, qtype, qclass)
     if status == 0 and result.was_ratelimited:
         print("Ratelimit-fg-on: pass")
@@ -100,6 +101,7 @@ def test_ratelimit_bg_on(ctx):
 
     """
     ctx.set_option("ratelimit:", "1")
+    ctx.set_option("ratelimit-factor:", "0")
     cb_data = dict(done=False)
     retval, async_id = ctx.resolve_async(qname, cb_data, callback, qtype, qclass)
     while retval == 0 and not cb_data['done']: