]> granicus.if.org Git - pdns/commitdiff
dnsdist: Fix duration false positive in the dynblock regression tests
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 2 Jul 2018 14:16:40 +0000 (16:16 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 2 Jul 2018 14:16:40 +0000 (16:16 +0200)
The number of remaining seconds might also be equal to the minimum
value.

regression-tests.dnsdist/test_DynBlocks.py

index a7f883cd0edabc9e63bc9cbe3c9ba7688b268dd5..4044b66205ebfcf0af126b2bc1deb4687c813152 100644 (file)
@@ -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)