couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [3/3] git commit: use more docs in view_compaction test to ensure a difference
Date Thu, 20 Dec 2012 17:51:40 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/9a580124
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/9a580124
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/9a580124

Branch: refs/heads/1.0.x
Commit: 9a580124cba870d42b52a5584c29458d6ee58ada
Parents: 70dbb7f
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:10 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/9a580124/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 a11fb7b..3373f91 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;
 
@@ -93,12 +93,12 @@ 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);
 };
\ No newline at end of file


Mime
View raw message