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

Hans Leidekker hans at codeweavers.com
Tue Oct 21 06:53:37 CDT 2008


diff --git a/dlls/wldap32/tests/parse.c b/dlls/wldap32/tests/parse.c
index f54f15b..ade3061 100644
--- a/dlls/wldap32/tests/parse.c
+++ b/dlls/wldap32/tests/parse.c
@@ -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 );



More information about the wine-patches mailing list