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
diff --git a/share/www/script/test/view_compaction.js b/share/www/script/test/view_compaction.js
index 318dfdb..a11fb7b 100644
--- a/share/www/script/test/view_compaction.js
+++ b/share/www/script/test/view_compaction.js
@@ -80,6 +80,7 @@
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 @@
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