From: Remi Gacogne Date: Mon, 2 Jul 2018 14:16:40 +0000 (+0200) Subject: dnsdist: Fix duration false positive in the dynblock regression tests X-Git-Tag: dnsdist-1.3.1~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6767%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix duration false positive in the dynblock regression tests The number of remaining seconds might also be equal to the minimum value. --- diff --git a/regression-tests.dnsdist/test_DynBlocks.py b/regression-tests.dnsdist/test_DynBlocks.py index a7f883cd0e..4044b66205 100644 --- a/regression-tests.dnsdist/test_DynBlocks.py +++ b/regression-tests.dnsdist/test_DynBlocks.py @@ -29,7 +29,7 @@ class DynBlocksTest(DNSDistTest): self.assertIn(key, values) self.assertEqual(values['reason'], reason) - self.assertGreater(values['seconds'], minSeconds) + self.assertGreaterEqual(values['seconds'], minSeconds) self.assertLessEqual(values['seconds'], maxSeconds) self.assertGreaterEqual(values['blocks'], minBlocks) self.assertLessEqual(values['blocks'], maxBlocks)