From 7707d453c61c7b2639f0da013163584c3d5074d0 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 6 Jun 2006 22:31:20 +0000 Subject: r16068: Check against the correct result in the ldap.js test Andrew Bartlett (This used to be commit 52b4e83a1c2cd47bf2f8b6d65419dae12631725a) --- testprogs/ejs/ldap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testprogs') diff --git a/testprogs/ejs/ldap.js b/testprogs/ejs/ldap.js index 2429b9da5a..fa611733c9 100755 --- a/testprogs/ejs/ldap.js +++ b/testprogs/ejs/ldap.js @@ -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); -- cgit