couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [1/3] git commit: use more docs in view_compaction test to ensure a difference
Date Thu, 20 Dec 2012 17:51:40 GMT
Updated Branches:
  refs/heads/1.0.x 70dbb7ffa -> 9a580124c
  refs/heads/1.1.x 9a752bb9d -> 33be876de
  refs/heads/1.2.x 169c5e4bc -> 42eca20f1


use more docs in view_compaction test to ensure a difference


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/42eca20f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/42eca20f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/42eca20f

Branch: refs/heads/1.2.x
Commit: 42eca20f1fe2f602d7b801b03c744d777fa3165d
Parents: 169c5e4
Author: Jan Lehnardt <jan@apache.org>
Authored: Wed Dec 5 16:26:37 2012 +0100
Committer: Jan Lehnardt <jan@apache.org>
Committed: Thu Dec 20 18:51:19 2012 +0100

----------------------------------------------------------------------
 share/www/script/test/view_compaction.js |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/42eca20f/share/www/script/test/view_compaction.js
----------------------------------------------------------------------
diff --git a/share/www/script/test/view_compaction.js b/share/www/script/test/view_compaction.js
index 4c75184..30c33e0 100644
--- a/share/www/script/test/view_compaction.js
+++ b/share/www/script/test/view_compaction.js
@@ -34,17 +34,17 @@ couchTests.view_compaction = function(debug) {
   };
   T(db.save(ddoc).ok);
 
-  var docs = makeDocs(0, 1000);
+  var docs = makeDocs(0, 10000);
   db.bulkSave(docs);
 
   var resp = db.view('foo/view1', {});
-  T(resp.rows.length === 1000);
+  T(resp.rows.length === 10000);
 
   resp = db.view('foo/view2', {});
   T(resp.rows.length === 1);
 
   resp = db.designInfo("_design/foo");
-  T(resp.view_index.update_seq === 1001);
+  T(resp.view_index.update_seq === 10001);
 
 
   // update docs
@@ -55,13 +55,13 @@ couchTests.view_compaction = function(debug) {
 
 
   resp = db.view('foo/view1', {});
-  T(resp.rows.length === 1000);
+  T(resp.rows.length === 10000);
 
   resp = db.view('foo/view2', {});
   T(resp.rows.length === 1);
 
   resp = db.designInfo("_design/foo");
-  T(resp.view_index.update_seq === 2001);
+  T(resp.view_index.update_seq === 20001);
 
 
   // update docs again...
@@ -72,13 +72,13 @@ couchTests.view_compaction = function(debug) {
 
 
   resp = db.view('foo/view1', {});
-  T(resp.rows.length === 1000);
+  T(resp.rows.length === 10000);
 
   resp = db.view('foo/view2', {});
   T(resp.rows.length === 1);
 
   resp = db.designInfo("_design/foo");
-  T(resp.view_index.update_seq === 3001);
+  T(resp.view_index.update_seq === 30001);
 
   var disk_size_before_compact = resp.view_index.disk_size;
   var data_size_before_compact = resp.view_index.data_size;
@@ -97,13 +97,13 @@ couchTests.view_compaction = function(debug) {
 
 
   resp = db.view('foo/view1', {});
-  T(resp.rows.length === 1000);
+  T(resp.rows.length === 10000);
 
   resp = db.view('foo/view2', {});
   T(resp.rows.length === 1);
 
   resp = db.designInfo("_design/foo");
-  T(resp.view_index.update_seq === 3001);
+  T(resp.view_index.update_seq === 30001);
   T(resp.view_index.disk_size < disk_size_before_compact);
   TEquals("number", typeof resp.view_index.data_size, "data size is a number");
   T(resp.view_index.data_size < resp.view_index.disk_size, "data size < file size");


Mime
View raw message