wldap32: Use a test query that is more likely to succeed within 20 seconds.

This commit is contained in:
Hans Leidekker 2008-10-21 13:53:37 +02:00 committed by Alexandre Julliard
parent 822e4cba1e
commit 6d901a173d
1 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ static void test_ldap_parse_sort_control( LDAP *ld )
LDAPMessage *res = NULL;
struct l_timeval timeout;
key.sk_attrtype = (char *)"cn";
key.sk_attrtype = (char *)"ou";
key.sk_matchruleoid = NULL;
key.sk_reverseorder = FALSE;
@ -47,7 +47,7 @@ static void test_ldap_parse_sort_control( LDAP *ld )
ctrls[1] = NULL;
timeout.tv_sec = 20;
timeout.tv_usec = 0;
ret = ldap_search_ext_sA( ld, (char *)"", LDAP_SCOPE_SUBTREE, (char *)"(cn=Verisign*)", NULL, 0, ctrls, NULL, &timeout, 10, &res );
ret = ldap_search_ext_sA( ld, (char *)"", LDAP_SCOPE_ONELEVEL, (char *)"(ou=*)", NULL, 0, ctrls, NULL, &timeout, 10, &res );
ok( !ret, "ldap_search_ext_sA failed 0x%x\n", ret );
if (ret)
{
@ -84,7 +84,7 @@ START_TEST (parse)
{
LDAP *ld;
ld = ldap_initA((char *)"directory.verisign.com", 389 );
ld = ldap_initA((char *)"ldap.itd.umich.edu", 389 );
ok( ld != NULL, "ldap_init failed\n" );
test_ldap_parse_sort_control( ld );