From 96616f8d73464bca508f3b9f4df7e8367dc3172d Mon Sep 17 00:00:00 2001 From: Filipe David Borba Manana Date: Sat, 30 Oct 2010 11:21:56 +0000 Subject: 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 --- share/www/script/test/design_docs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'share/www/script') 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 -- cgit v1.2.3