summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-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