From: George Thessalonikefs Date: Fri, 3 Aug 2018 15:57:48 +0000 (+0000) Subject: Make sure that we don't randomly fail the pylib ratelimiting tests. X-Git-Tag: release-1.8.0rc1~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2a793304526115f6560124d649699dababe91cb;p=thirdparty%2Funbound.git Make sure that we don't randomly fail the pylib ratelimiting tests. git-svn-id: file:///svn/unbound/trunk@4829 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/testdata/pylib.tdir/pylib.lookup.py b/testdata/pylib.tdir/pylib.lookup.py index d45333d76..5f69c58ab 100755 --- a/testdata/pylib.tdir/pylib.lookup.py +++ b/testdata/pylib.tdir/pylib.lookup.py @@ -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']: