From: Otto Moerbeek Date: Tue, 25 Oct 2022 13:36:31 +0000 (+0200) Subject: This test assumes the health check timeout is 1 second, while it is 2 seconds by... X-Git-Tag: dnsdist-1.8.0-rc1~259^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2abc153929e22c4abad73f1eba9395e00f18febd;p=thirdparty%2Fpdns.git This test assumes the health check timeout is 1 second, while it is 2 seconds by default. Adapt tests to take that into account, which resolves the occasional failure as tested locally. --- diff --git a/regression-tests.auth-py/test_LuaRecords.py b/regression-tests.auth-py/test_LuaRecords.py index fa56b2354f..f5e922e3be 100644 --- a/regression-tests.auth-py/test_LuaRecords.py +++ b/regression-tests.auth-py/test_LuaRecords.py @@ -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)