summaryrefslogtreecommitdiff
path: root/share/www/script/test
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/script/test')
-rw-r--r--share/www/script/test/basics.js2
-rw-r--r--share/www/script/test/compact.js3
2 files changed, 3 insertions, 2 deletions
diff --git a/share/www/script/test/basics.js b/share/www/script/test/basics.js
index 39500629..19a7e015 100644
--- a/share/www/script/test/basics.js
+++ b/share/www/script/test/basics.js
@@ -139,7 +139,7 @@ couchTests.basics = function(debug) {
// make sure we can still open the old rev of the deleted doc
T(db.open(existingDoc._id, {rev: existingDoc._rev}) != null);
-
+ console.log("db.info: " + db.info.update_seq),
// make sure restart works
T(db.ensureFullCommit().ok);
restartServer();
diff --git a/share/www/script/test/compact.js b/share/www/script/test/compact.js
index 51a57051..a3b55d85 100644
--- a/share/www/script/test/compact.js
+++ b/share/www/script/test/compact.js
@@ -15,7 +15,7 @@ couchTests.compact = function(debug) {
db.deleteDb();
db.createDb();
if (debug) debugger;
- var docs = makeDocs(0, 10);
+ var docs = makeDocs(0, 20);
db.bulkSave(docs);
var binAttDoc = {
@@ -35,6 +35,7 @@ couchTests.compact = function(debug) {
for(var i in docs) {
db.deleteDoc(docs[i]);
}
+ T(db.ensureFullCommit().ok);
var deletesize = db.info().disk_size;
T(deletesize > originalsize);