summaryrefslogtreecommitdiff
path: root/testprogs/ejs
diff options
context:
space:
mode:
Diffstat (limited to 'testprogs/ejs')
-rwxr-xr-xtestprogs/ejs/samba3sam.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/testprogs/ejs/samba3sam.js b/testprogs/ejs/samba3sam.js
index 076d434360..4c6f14b7b1 100755
--- a/testprogs/ejs/samba3sam.js
+++ b/testprogs/ejs/samba3sam.js
@@ -114,7 +114,6 @@ showInAdvancedViewOnly: TRUE
println(ldb.errstring());
assert(ok);
}
- assert(ok);
println("Checking for existence of record (local)");
/* TODO: This record must be searched in the local database, which is currently only supported for base searches
@@ -288,7 +287,10 @@ description: y
ldif = substitute_var(ldif, s4);
assert(ldif != undefined);
var ok = ldb.add(ldif);
- assert(ok);
+ if (!ok) {
+ println(ldb.errstring());
+ assert(ok);
+ }
/* Add a set of remote records */
var ldif = "