diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2022-04-30 18:03:14 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2022-06-09 22:49:29 +0000 |
commit | ee29c601b2566831d201735c73e4fbf40319437f (patch) | |
tree | f6671c818b0eed78adedc5b123991516610017bc /source4/dsdb | |
parent | 14feb93d481011765f62614ab49b304e17e4f6fd (diff) | |
download | samba-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.py | 4 |
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: |