From: Otto Moerbeek Date: Mon, 3 Oct 2022 09:02:40 +0000 (+0200) Subject: Apply suggestions from code review X-Git-Tag: rec-4.9.0-alpha0^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12041%2Fhead;p=thirdparty%2Fpdns.git Apply suggestions from code review Co-authored-by: Remi Gacogne --- diff --git a/regression-tests.recursor-dnssec/test_LockedCache.py b/regression-tests.recursor-dnssec/test_LockedCache.py index 26c955a319..b53ceff7d7 100644 --- a/regression-tests.recursor-dnssec/test_LockedCache.py +++ b/regression-tests.recursor-dnssec/test_LockedCache.py @@ -53,7 +53,7 @@ class testLockedCache(RecursorTest): self.assertRRsetInAnswer(res, expected2) self.assertMatchingRRSIGInAnswer(res, expected2) ttl2 = self.getCacheTTL() - self.assertNotEqual(ttl1, ttl2) + self.assertGreater(ttl1, ttl2) class testNotLockedCache(RecursorTest): """ @@ -102,4 +102,4 @@ class testNotLockedCache(RecursorTest): self.assertRRsetInAnswer(res, expected2) self.assertMatchingRRSIGInAnswer(res, expected2) ttl2 = self.getCacheTTL() - self.assertEqual(ttl1, ttl2) + self.assertAlmostEqual(ttl1, ttl2, 1)