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)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 6 Apr 2023 00:33:35 +0000 (00:33 +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>
source4/dsdb/tests/python/large_ldap.py

index 302e0002095a9888191e61e7b36949bce569d585..02472baef5ac2bcb5dde47f1d18559ed1fbcf9ab 100644 (file)
@@ -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.