]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dsdb/tests: Double number of expressions in large_ldap.py ldap_timeout test
authorAndrew Bartlett <abartlet@samba.org>
Wed, 5 Apr 2023 20:59:17 +0000 (08:59 +1200)
committerJule Anger <janger@samba.org>
Tue, 11 Apr 2023 15:09:10 +0000 (15:09 +0000)
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 <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
(cherry picked from commit 479634e4cd6543d489eb4700aebde1a479b94fe5)

source4/dsdb/tests/python/large_ldap.py

index ff172eecf70f9d39343e2d52aa706b5ba61a4c2e..cd8176363b54ed4cd7c803ace261114d018ff7cc 100644 (file)
@@ -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.