]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Apply suggestions from code review 12041/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 3 Oct 2022 09:02:40 +0000 (11:02 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Oct 2022 09:02:40 +0000 (11:02 +0200)
Co-authored-by: Remi Gacogne <github@coredump.fr>
regression-tests.recursor-dnssec/test_LockedCache.py

index 26c955a31906dee416ab8e87a12d2e48f2bf35b2..b53ceff7d7abc471139f9e4d5ef48b5d05aed484 100644 (file)
@@ -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)