From deb4d4a3cfdd4c9031d6b50a0cab956bb32b1346 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 3 Oct 2022 11:02:40 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Remi Gacogne --- regression-tests.recursor-dnssec/test_LockedCache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.47.2