couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject [couchdb] branch 63012-scheduler updated: [fixup] Fix js tests after adding jitter to startup
Date Fri, 14 Apr 2017 22:33:23 GMT
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch 63012-scheduler
in repository https://gitbox.apache.org/repos/asf/couchdb.git

The following commit(s) were added to refs/heads/63012-scheduler by this push:
       new  34991ab   [fixup] Fix js tests after adding jitter to startup
34991ab is described below

commit 34991ab0eaa35f1771c3fac953e68c8321d46cb7
Author: Nick Vatamaniuc <vatamane@apache.org>
AuthorDate: Fri Apr 14 18:33:17 2017 -0400

    [fixup] Fix js tests after adding jitter to startup
---
 test/javascript/replicator_db_inc.js | 6 +++---
 test/javascript/tests/replication.js | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/test/javascript/replicator_db_inc.js b/test/javascript/replicator_db_inc.js
index 46dcdd7..eeb48a5 100644
--- a/test/javascript/replicator_db_inc.js
+++ b/test/javascript/replicator_db_inc.js
@@ -36,7 +36,7 @@ replicator_db.waitForRep = function waitForSeq(repDb, repDoc, state, errorState)
   var newRep,
       t0 = new Date(),
       t1,
-      ms = 3000;
+      ms = 8000;
 
   do {
     newRep = repDb.open(repDoc._id);
@@ -50,7 +50,7 @@ replicator_db.waitForSeq = function waitForSeq(sourceDb, targetDb) {
       sourceSeq = sourceDb.info().update_seq,
       t0 = new Date(),
       t1,
-      ms = 3000;
+      ms = 8000;
 
   do {
     targetSeq = targetDb.info().update_seq;
@@ -60,7 +60,7 @@ replicator_db.waitForSeq = function waitForSeq(sourceDb, targetDb) {
 
 replicator_db.waitForDocPos = function waitForDocPos(db, docId, pos) {
   var doc, curPos, t0, t1,
-      maxWait = 3000;
+      maxWait = 8000;
 
   doc = db.open(docId);
   curPos = Number(doc._rev.split("-", 1));
diff --git a/test/javascript/tests/replication.js b/test/javascript/tests/replication.js
index b51a708..fa2b22f 100644
--- a/test/javascript/tests/replication.js
+++ b/test/javascript/tests/replication.js
@@ -223,7 +223,7 @@ couchTests.replication = function(debug) {
     var sourceSeq = sourceDb.info().update_seq,
         t0 = new Date(),
         t1,
-        ms = 3000;
+        ms = 8000;
 
     do {
       var task = getTask(rep_id, 0);
@@ -1813,7 +1813,7 @@ couchTests.replication = function(debug) {
   TEquals('string', typeof repResult._local_id);
   var repId = repResult._local_id;
 
-  var task = getTask(repId, 3000);
+  var task = getTask(repId, 8000);
   T(task != null);
 
   TEquals(task["replication_id"], repId, "Replication found in _active_tasks");

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <commits@couchdb.apache.org>'].

Mime
View raw message