wldap32: Use a test query that is more likely to succeed within 20 seconds.
This commit is contained in:
parent
822e4cba1e
commit
6d901a173d
|
@ -34,7 +34,7 @@ static void test_ldap_parse_sort_control( LDAP *ld )
|
||||||
LDAPMessage *res = NULL;
|
LDAPMessage *res = NULL;
|
||||||
struct l_timeval timeout;
|
struct l_timeval timeout;
|
||||||
|
|
||||||
key.sk_attrtype = (char *)"cn";
|
key.sk_attrtype = (char *)"ou";
|
||||||
key.sk_matchruleoid = NULL;
|
key.sk_matchruleoid = NULL;
|
||||||
key.sk_reverseorder = FALSE;
|
key.sk_reverseorder = FALSE;
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ static void test_ldap_parse_sort_control( LDAP *ld )
|
||||||
ctrls[1] = NULL;
|
ctrls[1] = NULL;
|
||||||
timeout.tv_sec = 20;
|
timeout.tv_sec = 20;
|
||||||
timeout.tv_usec = 0;
|
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 );
|
ok( !ret, "ldap_search_ext_sA failed 0x%x\n", ret );
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
|
@ -84,7 +84,7 @@ START_TEST (parse)
|
||||||
{
|
{
|
||||||
LDAP *ld;
|
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" );
|
ok( ld != NULL, "ldap_init failed\n" );
|
||||||
|
|
||||||
test_ldap_parse_sort_control( ld );
|
test_ldap_parse_sort_control( ld );
|
||||||
|
|
Loading…
Reference in New Issue