couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r962460 - /couchdb/trunk/share/www/script/test/view_compaction.js
Date Fri, 09 Jul 2010 09:25:44 GMT
Author: fdmanana
Date: Fri Jul  9 09:25:44 2010
New Revision: 962460

URL: http://svn.apache.org/viewvc?rev=962460&view=rev
Log:
Adding one more assertion to the view_compaction.js test to verify that the
view group disk size is smaller after compaction.


Modified:
    couchdb/trunk/share/www/script/test/view_compaction.js

Modified: couchdb/trunk/share/www/script/test/view_compaction.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/view_compaction.js?rev=962460&r1=962459&r2=962460&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/view_compaction.js (original)
+++ couchdb/trunk/share/www/script/test/view_compaction.js Fri Jul  9 09:25:44 2010
@@ -80,6 +80,7 @@ couchTests.view_compaction = function(de
   resp = db.designInfo("_design/foo");
   T(resp.view_index.update_seq === 3001);
 
+  var disk_size_before_compact = resp.view_index.disk_size;
 
   // compact view group
   var xhr = CouchDB.request("POST", "/" + db.name + "/_compact" + "/foo");
@@ -99,4 +100,5 @@ couchTests.view_compaction = function(de
 
   resp = db.designInfo("_design/foo");
   T(resp.view_index.update_seq === 3001);
+  T(resp.view_index.disk_size < disk_size_before_compact);
 };
\ No newline at end of file



Mime
View raw message