From 44fe80dfdcf8540402e80580bcfa4f184cbc3b21 Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Fri, 9 Jul 2010 09:25:44 +0000 Subject: 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/trunk@962460 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/test/view_compaction.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'share') 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 -- cgit v1.2.3