r8745: make ldap.js cleanup after itself
authorAndrew Tridgell <tridge@samba.org>
Mon, 25 Jul 2005 02:26:38 +0000 (02:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:30:01 +0000 (13:30 -0500)
testprogs/ejs/ldap.js

index bf9b4ac1054186e9ef811ac641a5e56fb3745f2a..28a08879cf50e60187e7396ebe8271ad3442c0d7 100755 (executable)
@@ -30,7 +30,7 @@ function basic_tests(ldb, base_dn)
 
        ldb.del("cn=ldaptestuser,cn=users," + base_dn);
 
-       ok = ldb.add("
+       var ok = ldb.add("
 dn: cn=ldaptestuser,cn=users," + base_dn + "
 objectClass: user
 objectClass: person
@@ -47,6 +47,8 @@ cn: LDAPtestUSER
        assert(res[0].objectGUID != undefined);
        assert(res[0].whenCreated != undefined);
 
+       ok = ldb.del(res[0].dn);
+       assert(ok);
 }
 
 function find_basedn(ldb)