]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
This test assumes the health check timeout is 1 second, while it is 2 seconds by... 12132/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 25 Oct 2022 13:36:31 +0000 (15:36 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 25 Oct 2022 13:37:56 +0000 (15:37 +0200)
Adapt tests to take that into account, which resolves the occasional failure as tested locally.

regression-tests.auth-py/test_LuaRecords.py

index fa56b2354f3301db490f1001b593229125c9f890..f5e922e3bedbdc07ebac373f480cde98a98f3050 100644 (file)
@@ -359,7 +359,7 @@ createforward6.example.org.                 3600 IN NS   ns2.example.org.
         res = self.sendUDPQuery(query)
         self.assertRcodeEqual(res, dns.rcode.NOERROR)
 
-        time.sleep(2)
+        time.sleep(3)
         res = self.sendUDPQuery(query)
         self.assertRcodeEqual(res, dns.rcode.NOERROR)
         self.assertEqual(res.answer, expected)
@@ -386,8 +386,8 @@ createforward6.example.org.                 3600 IN NS   ns2.example.org.
         self.assertRcodeEqual(res, dns.rcode.NOERROR)
         self.assertAnyRRsetInAnswer(res, all_rrs)
 
-        # the timeout in the LUA health checker is 1 second, so we make sure to wait slightly longer here
-        time.sleep(2)
+        # the timeout in the LUA health checker is 2 second, so we make sure to wait slightly longer here
+        time.sleep(3)
         res = self.sendUDPQuery(query)
         self.assertRcodeEqual(res, dns.rcode.NOERROR)
         self.assertAnyRRsetInAnswer(res, reachable_rrs)
@@ -429,7 +429,7 @@ createforward6.example.org.                 3600 IN NS   ns2.example.org.
         self.assertRcodeEqual(res, dns.rcode.NOERROR)
         self.assertAnyRRsetInAnswer(res, all_rrs)
 
-        time.sleep(2)
+        time.sleep(3)
         res = self.sendUDPQuery(query)
         self.assertRcodeEqual(res, dns.rcode.NOERROR)
         self.assertAnyRRsetInAnswer(res, reachable_rrs)