]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix the Dynamic Block ratio regression test
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 27 Nov 2020 11:27:19 +0000 (12:27 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 27 Nov 2020 11:27:19 +0000 (12:27 +0100)
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

index fad4a22426e7e233f8248d67410c13cc23c6e656..53b8935e71e888f00c55de9a4b07450df53af78a 100644 (file)
@@ -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 = """