From: Joseph Sutton Date: Sat, 30 Apr 2022 06:03:14 +0000 (+1200) Subject: tests/krb5/test_ldap.py: Increase maximum threshold for LDAP timeout X-Git-Tag: tevent-0.13.0~460 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee29c601b2566831d201735c73e4fbf40319437f;p=thirdparty%2Fsamba.git tests/krb5/test_ldap.py: Increase maximum threshold for LDAP timeout This test often fails because the server takes too long to time out. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source4/dsdb/tests/python/large_ldap.py b/source4/dsdb/tests/python/large_ldap.py index f1fc13939e5..0805119a700 100644 --- a/source4/dsdb/tests/python/large_ldap.py +++ b/source4/dsdb/tests/python/large_ldap.py @@ -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: