From: Remi Gacogne Date: Fri, 27 Nov 2020 11:27:19 +0000 (+0100) Subject: dnsdist: Fix the Dynamic Block ratio regression test X-Git-Tag: dnsdist-1.5.2~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9980%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix the Dynamic Block ratio regression test We now properly skip the too old entries when scanning responses, so we need to set a long enough period so that the responses are still valids when we compute the ratio. (cherry picked from commit dcc50bde3ada3ed35fd1b3ac420040fd8a81ac88) --- diff --git a/regression-tests.dnsdist/test_DynBlocks.py b/regression-tests.dnsdist/test_DynBlocks.py index fad4a22426..53b8935e71 100644 --- a/regression-tests.dnsdist/test_DynBlocks.py +++ b/regression-tests.dnsdist/test_DynBlocks.py @@ -934,7 +934,9 @@ class TestDynBlockGroupServFails(DynBlocksTest): class TestDynBlockGroupServFailsRatio(DynBlocksTest): - _dynBlockPeriod = 2 + # we need this period to be quite long because we request the valid + # queries to be still looked at to reach the 20 queries count! + _dynBlockPeriod = 6 _dynBlockDuration = 5 _config_params = ['_dynBlockPeriod', '_dynBlockDuration', '_testServerPort'] _config_template = """