From: Otto Moerbeek Date: Tue, 25 Oct 2022 14:15:07 +0000 (+0200) Subject: Fix assertAlmostEqual call to compare absolute difference X-Git-Tag: dnsdist-1.8.0-rc1~257^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12133%2Fhead;p=thirdparty%2Fpdns.git Fix assertAlmostEqual call to compare absolute difference --- diff --git a/regression-tests.recursor-dnssec/test_LockedCache.py b/regression-tests.recursor-dnssec/test_LockedCache.py index 4977f76a62..9a58d97752 100644 --- a/regression-tests.recursor-dnssec/test_LockedCache.py +++ b/regression-tests.recursor-dnssec/test_LockedCache.py @@ -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)