diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2010-07-09 09:25:44 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2010-07-09 09:25:44 +0000 |
commit | 44fe80dfdcf8540402e80580bcfa4f184cbc3b21 (patch) | |
tree | 6caf22a7c7b137125541d26c1ba476d876564cc3 /share | |
parent | fe73841cf1d2efe08d918d979db003e176aa258f (diff) |
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
Diffstat (limited to 'share')
-rw-r--r-- | share/www/script/test/view_compaction.js | 2 |
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 |