couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1029026 - /couchdb/trunk/share/www/script/test/design_docs.js
Date Sat, 30 Oct 2010 11:21:56 GMT
Author: fdmanana
Date: Sat Oct 30 11:21:56 2010
New Revision: 1029026

URL: http://svn.apache.org/viewvc?rev=1029026&view=rev
Log:
Avoiding hardcoded value for the view index disk size.

Modified:
    couchdb/trunk/share/www/script/test/design_docs.js

Modified: couchdb/trunk/share/www/script/test/design_docs.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/design_docs.js?rev=1029026&r1=1029025&r2=1029026&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/design_docs.js (original)
+++ couchdb/trunk/share/www/script/test/design_docs.js Sat Oct 30 11:21:56 2010
@@ -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



Mime
View raw message