r16068: Check against the correct result in the ldap.js test
authorAndrew Bartlett <abartlet@samba.org>
Tue, 6 Jun 2006 22:31:20 +0000 (22:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:08:56 +0000 (14:08 -0500)
Andrew Bartlett
(This used to be commit 52b4e83a1c2cd47bf2f8b6d65419dae12631725a)

testprogs/ejs/ldap.js

index 2429b9da5ad22704420c09aeece1befdbf8579e1..fa611733c9c7f3549615fbd16d5f6c9583db93ad 100755 (executable)
@@ -160,9 +160,9 @@ objectClass: user
 
        println("Testing ldb.search for (&(cn=ldaptestuser)(objectCategory=cn=person,cn=schema,cn=configuration," + base_dn + "))");
        var res2 = ldb.search("(&(cn=ldaptestuser)(objectCategory=cn=person,cn=schema,cn=configuration," + base_dn + "))");
-       if (res.length != 1) {
+       if (res2.length != 1) {
                println("Could not find (&(cn=ldaptestuser)(objectCategory=cn=person,cn=schema,cn=configuration," + base_dn + "))");
-               assert(res.length == 1);
+               assert(res2.length == 1);
        }
 
        assert(res[0].dn == res2[0].dn);