From dcc50bde3ada3ed35fd1b3ac420040fd8a81ac88 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 27 Nov 2020 12:27:19 +0100 Subject: [PATCH] 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. --- regression-tests.dnsdist/test_DynBlocks.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = """ -- 2.47.2