1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

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>
This commit is contained in:
Joseph Sutton
2022-04-30 18:03:14 +12:00
committed by Andrew Bartlett
parent 14feb93d48
commit ee29c601b2

View 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: