]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix assertAlmostEqual call to compare absolute difference 12133/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 25 Oct 2022 14:15:07 +0000 (16:15 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 25 Oct 2022 14:15:07 +0000 (16:15 +0200)
regression-tests.recursor-dnssec/test_LockedCache.py

index 4977f76a6260dd98fd0e160cea9a4bda7191ee64..9a58d97752f9bbd1bd2acc03f85f9e3e5b7e4be3 100644 (file)
@@ -102,4 +102,4 @@ class testNotLockedCache(RecursorTest):
         self.assertRRsetInAnswer(res, expected2)
         self.assertMatchingRRSIGInAnswer(res, expected2)
         ttl2 = self.getCacheTTL()
-        self.assertAlmostEqual(ttl1, ttl2, 1)
+        self.assertAlmostEqual(ttl1, ttl2, delta=1)