summaryrefslogtreecommitdiff
path: root/share/www/script/test
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-07-09 09:27:32 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-07-09 09:27:32 +0000
commit9bac1a3c95164a33082c721ddf26a2925b72d106 (patch)
tree7645daf5e005808720a3045de2f99c86d1a62014 /share/www/script/test
parenta9fdb57e49431a50fd775dbf965d564916633f52 (diff)
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. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@962462 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test')
-rw-r--r--share/www/script/test/view_compaction.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/www/script/test/view_compaction.js b/share/www/script/test/view_compaction.js
index 318dfdb5..a11fb7bd 100644
--- a/share/www/script/test/view_compaction.js
+++ b/share/www/script/test/view_compaction.js
@@ -80,6 +80,7 @@ couchTests.view_compaction = function(debug) {
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(debug) {
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