summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2022-04-30 18:03:14 +1200
committerAndrew Bartlett <abartlet@samba.org>2022-06-09 22:49:29 +0000
commitee29c601b2566831d201735c73e4fbf40319437f (patch)
treef6671c818b0eed78adedc5b123991516610017bc /source4/dsdb
parent14feb93d481011765f62614ab49b304e17e4f6fd (diff)
downloadsamba-ee29c601b2566831d201735c73e4fbf40319437f.tar.gz
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 <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/tests/python/large_ldap.py4
1 files changed, 2 insertions, 2 deletions
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: