]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5/test_ldap.py: Increase maximum threshold for LDAP timeout
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sat, 30 Apr 2022 06:03:14 +0000 (18:03 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 9 Jun 2022 22:49:29 +0000 (22:49 +0000)
This test often fails because the server takes too long to time out.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/large_ldap.py

index f1fc13939e5d806f6346df56eb1a88f45e7bb987..0805119a70024e34c3aa1eb9ab062caa4f4c2e8e 100644 (file)
@@ -303,10 +303,10 @@ class LargeLDAPTest(samba.tests.TestCase):
         self.assertEqual(ldb.ERR_TIME_LIMIT_EXCEEDED, enum)
 
         # Ensure that the time spent searching is within the limit we
-        # set.  We allow a margin of 100% over as the Samba timeout
+        # set.  We allow a marginal amount over as the Samba timeout
         # handling is not very accurate (and does not need to be)
         self.assertLess(timeout - 1, duration)
-        self.assertLess(duration, timeout * 2)
+        self.assertLess(duration, timeout * 4)
 
 
 if "://" not in url: