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