couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cml...@apache.org
Subject svn commit: r660282 - /incubator/couchdb/trunk/share/www/script/couch_tests.js
Date Mon, 26 May 2008 19:51:19 GMT
Author: cmlenz
Date: Mon May 26 12:51:17 2008
New Revision: 660282

URL: http://svn.apache.org/viewvc?rev=660282&view=rev
Log:
Fix assertion in compaction test.

Modified:
    incubator/couchdb/trunk/share/www/script/couch_tests.js

Modified: incubator/couchdb/trunk/share/www/script/couch_tests.js
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/share/www/script/couch_tests.js?rev=660282&r1=660281&r2=660282&view=diff
==============================================================================
--- incubator/couchdb/trunk/share/www/script/couch_tests.js [utf-8] (original)
+++ incubator/couchdb/trunk/share/www/script/couch_tests.js [utf-8] Mon May 26 12:51:17 2008
@@ -951,7 +951,6 @@
     var saveResult = db.bulkSave(docs);
     T(saveResult.ok);
 
-
     var binAttDoc = {
       _id: "bin_doc",
       _attachments:{
@@ -974,10 +973,8 @@
 
     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 compactedsize = db.info().disk_size;
 
-    T(deletesize > originalsize);
-    }
+    T(compactedsize < deletesize);
+  }
 };
 
 function makeDocs(start, end, templateDoc) {



Mime
View raw message