You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2010/07/09 11:27:33 UTC
svn commit: r962462 -
/couchdb/branches/1.0.x/share/www/script/test/view_compaction.js
Author: fdmanana
Date: Fri Jul 9 09:27:32 2010
New Revision: 962462
URL: http://svn.apache.org/viewvc?rev=962462&view=rev
Log:
Merge revision 962460 from trunk:
Adding one more assertion to the view_compaction.js test to verify that the
view group disk size is smaller after compaction.
Modified:
couchdb/branches/1.0.x/share/www/script/test/view_compaction.js
Modified: couchdb/branches/1.0.x/share/www/script/test/view_compaction.js
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/share/www/script/test/view_compaction.js?rev=962462&r1=962461&r2=962462&view=diff
==============================================================================
--- couchdb/branches/1.0.x/share/www/script/test/view_compaction.js (original)
+++ couchdb/branches/1.0.x/share/www/script/test/view_compaction.js Fri Jul 9 09:27:32 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