From 0fba21c1bfab48382acacd502e03d478a26a64b1 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 6 Apr 2023 08:59:17 +1200 Subject: [PATCH] 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 (cherry picked from commit 479634e4cd6543d489eb4700aebde1a479b94fe5) --- source4/dsdb/tests/python/large_ldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/dsdb/tests/python/large_ldap.py b/source4/dsdb/tests/python/large_ldap.py index ff172eecf70..cd8176363b5 100644 --- a/source4/dsdb/tests/python/large_ldap.py +++ b/source4/dsdb/tests/python/large_ldap.py @@ -300,7 +300,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. -- 2.47.3