From 19b77e8a73f4c1f9692c5da310da22c3f0df92c3 Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Mon, 26 May 2008 19:51:17 +0000 Subject: Fix assertion in compaction test. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660282 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/couch_tests.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'share') diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js index 8ceff3e3..d500a390 100644 --- a/share/www/script/couch_tests.js +++ b/share/www/script/couch_tests.js @@ -951,7 +951,6 @@ var tests = { var saveResult = db.bulkSave(docs); T(saveResult.ok); - var binAttDoc = { _id: "bin_doc", _attachments:{ @@ -974,10 +973,8 @@ var tests = { var xhr = CouchDB.request("POST", "/test_suite_db/_compact"); T(xhr.status == 202); - //compaction isn't instantaneous, loop until done - while(db.info().compact_running) {}; - - + // compaction isn't instantaneous, loop until done + while (db.info().compact_running) {}; var xhr = CouchDB.request("GET", "/test_suite_db/bin_doc/foo.txt"); T(xhr.responseText == "This is a base64 encoded text") @@ -985,8 +982,8 @@ var tests = { var compactedsize = db.info().disk_size; - T(deletesize > originalsize); - } + T(compactedsize < deletesize); + } }; function makeDocs(start, end, templateDoc) { -- cgit v1.2.3