summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2008-05-26 19:51:17 +0000
committerChristopher Lenz <cmlenz@apache.org>2008-05-26 19:51:17 +0000
commit19b77e8a73f4c1f9692c5da310da22c3f0df92c3 (patch)
treee8f35902a8d93743911ae85feb4acc72603fb589
parentfa0570ec6eecb15c2bdc7d6a3ac2933bc74b2f3d (diff)
Fix assertion in compaction test.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@660282 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--share/www/script/couch_tests.js11
1 files changed, 4 insertions, 7 deletions
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) {