From: Andrew Bartlett Date: Wed, 5 Apr 2023 20:59:17 +0000 (+1200) Subject: dsdb/tests: Double number of expressions in large_ldap.py ldap_timeout test X-Git-Tag: talloc-2.4.1~1052 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=479634e4cd6543d489eb4700aebde1a479b94fe5;p=thirdparty%2Fsamba.git dsdb/tests: Double number of expressions in large_ldap.py ldap_timeout test By slowing the filter down more this makes the test reliable on the autobuild host. This is not a long-term solution, but is a quick tweak that can be done today to address current issues with getting commits past the host-based (compared with cloud-based) autobuild. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15351 Signed-off-by: Andrew Bartlett Reviewed-by: Joseph Sutton --- diff --git a/source4/dsdb/tests/python/large_ldap.py b/source4/dsdb/tests/python/large_ldap.py index 302e0002095..02472baef5a 100644 --- a/source4/dsdb/tests/python/large_ldap.py +++ b/source4/dsdb/tests/python/large_ldap.py @@ -299,7 +299,7 @@ class LargeLDAPTest(samba.tests.TestCase): # Create a large search expression that will take a long time to # evaluate. - expression = f'(jpegPhoto=*X*)' * 1000 + expression = '(jpegPhoto=*X*)' * 2000 expression = f'(|{expression})' # Perform the LDAP search.