From: Remi Gacogne Date: Thu, 13 Nov 2025 12:58:55 +0000 (+0100) Subject: dnsdist: Block for slightly longer, TSAN on GH is slow X-Git-Tag: rec-5.4.0-alpha1~54^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8adbaeec4dd4843d38b1bbd37b63dcbee60e4a78;p=thirdparty%2Fpdns.git dnsdist: Block for slightly longer, TSAN on GH is slow Signed-off-by: Remi Gacogne --- diff --git a/regression-tests.dnsdist/test_TimedIPSet.py b/regression-tests.dnsdist/test_TimedIPSet.py index a7d0ead054..3a2446069a 100644 --- a/regression-tests.dnsdist/test_TimedIPSet.py +++ b/regression-tests.dnsdist/test_TimedIPSet.py @@ -63,15 +63,15 @@ query_rules: self.assertEqual(receivedQuery, query) self.assertEqual(receivedResponse, response) - # now we block it for one second - self.sendConsoleCommand('getObjectFromYAMLConfiguration(\'my-set\'):add(newCA(\'127.0.0.1\'), 1)') + # now we block it for two seconds + self.sendConsoleCommand('getObjectFromYAMLConfiguration(\'my-set\'):add(newCA(\'127.0.0.1\'), 2)') for method in ["sendUDPQuery", "sendTCPQuery"]: sender = getattr(self, method) (_, receivedResponse) = sender(query, response=None, useQueue=False) self.assertEqual(receivedResponse, refusedResponse) - time.sleep(1) + time.sleep(2) # should be unblocked now for method in ["sendUDPQuery", "sendTCPQuery"]: @@ -120,15 +120,15 @@ class TestTimeIPSetLua(DNSDistTest): self.assertEqual(receivedQuery, query) self.assertEqual(receivedResponse, response) - # now we block it for one second - self.sendConsoleCommand('mySet:add(newCA(\'127.0.0.1\'), 1)') + # now we block it for two seconds + self.sendConsoleCommand('mySet:add(newCA(\'127.0.0.1\'), 2)') for method in ["sendUDPQuery", "sendTCPQuery"]: sender = getattr(self, method) (_, receivedResponse) = sender(query, response=None, useQueue=False) self.assertEqual(receivedResponse, refusedResponse) - time.sleep(1) + time.sleep(2) # should be unblocked now for method in ["sendUDPQuery", "sendTCPQuery"]: