]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Wait a bit longer in the Backend Discovery regression tests
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 10 Feb 2022 14:50:54 +0000 (15:50 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 22 Feb 2022 10:32:22 +0000 (11:32 +0100)
Otherwise TSAN complains about a race in `boost::format` between the
connection error message in `SConnectWithTimeout()` and the output of
`showServers()`..

regression-tests.dnsdist/test_BackendDiscovery.py

index 76a9175505af2519d9377c6d87adefecb0bb3070..5ce70a3fe756a2fb902091a51ea32e6c9f07de9f 100644 (file)
@@ -200,8 +200,9 @@ class TestBackendDiscovery(DNSDistTest):
         """
 
         # enough time for discovery to happen
-        time.sleep(5)
+        # 5s is not enough with TSAN
+        time.sleep(10)
         if not self.checkBackendsUpgraded():
-            # 5s is not enough with TSAN
+            # let's wait a bit longer
             time.sleep(5)
             self.assertTrue(self.checkBackendsUpgraded())