couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [5/27] git commit: use more docs in view_compaction test to ensure a difference
Date Thu, 06 Dec 2012 21:06:54 GMT
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/56f969b3
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/56f969b3
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/56f969b3

Branch: refs/heads/1597-update-erlang-oauth-1-3-0
Commit: 56f969b3c49375c5321eb3cceb0fe346f8535c22
Parents: 419a809
Author: Jan Lehnardt <jan@apache.org>
Authored: Wed Dec 5 16:26:37 2012 +0100
Committer: Jan Lehnardt <jan@apache.org>
Committed: Wed Dec 5 16:27:14 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/56f969b3/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 ebf6fe1..151ce93 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