summaryrefslogtreecommitdiff
path: root/share/www/script
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-10-30 11:21:56 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-10-30 11:21:56 +0000
commit96616f8d73464bca508f3b9f4df7e8367dc3172d (patch)
tree6b66ef75ae72ba2484e3bcbc378e1dfb93d7969e /share/www/script
parenta2cb9ece1df094055f343f226c7825a0eea60dc8 (diff)
Avoiding hardcoded value for the view index disk size.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1029026 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script')
-rw-r--r--share/www/script/test/design_docs.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/www/script/test/design_docs.js b/share/www/script/test/design_docs.js
index 5c6a2d77..9571606d 100644
--- a/share/www/script/test/design_docs.js
+++ b/share/www/script/test/design_docs.js
@@ -105,6 +105,7 @@ function() {
TEquals("javascript", JSON.parse(xhr.responseText).language);
var prev_view_sig = db.designInfo("_design/test").view_index.signature;
+ var prev_view_size = db.designInfo("_design/test").view_index.disk_size;
db.bulkSave(makeDocs(1, numDocs + 1));
T(db.ensureFullCommit().ok);
@@ -117,7 +118,7 @@ function() {
var dinfo = db.designInfo("_design/test");
TEquals("test", dinfo.name);
var vinfo = dinfo.view_index;
- TEquals(51, vinfo.disk_size);
+ TEquals(prev_view_size, vinfo.disk_size, "view group disk size didn't change");
TEquals(false, vinfo.compact_running);
TEquals(prev_view_sig, vinfo.signature, 'ddoc sig');
// wait some time (there were issues where an update