couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [41/50] [abbrv] git commit: Small tweaks to test 242-replication-many-leaves.t
Date Wed, 14 Mar 2012 22:28:02 GMT
Small tweaks to test 242-replication-many-leaves.t

These tweaks make the test pass on slower machines/environments.


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

Branch: refs/heads/COUCHDB-1426
Commit: b1d8738a6ce96a64b0d942ac12de6836d6c9256f
Parents: 384a75b
Author: Filipe David Borba Manana <fdmanana@apache.org>
Authored: Mon Jan 23 16:40:30 2012 +0000
Committer: Filipe David Borba Manana <fdmanana@apache.org>
Committed: Mon Jan 23 16:43:37 2012 +0000

----------------------------------------------------------------------
 test/etap/242-replication-many-leaves.t |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/b1d8738a/test/etap/242-replication-many-leaves.t
----------------------------------------------------------------------
diff --git a/test/etap/242-replication-many-leaves.t b/test/etap/242-replication-many-leaves.t
index d8d3eb9..212ee99 100755
--- a/test/etap/242-replication-many-leaves.t
+++ b/test/etap/242-replication-many-leaves.t
@@ -56,7 +56,8 @@ doc_ids() ->
 
 doc_num_conflicts(<<"doc1">>) -> 10;
 doc_num_conflicts(<<"doc2">>) -> 100;
-doc_num_conflicts(<<"doc3">>) -> 286.
+% a number > MaxURLlength (7000) / length(DocRevisionString)
+doc_num_conflicts(<<"doc3">>) -> 210.
 
 
 main(_) ->
@@ -77,6 +78,7 @@ test() ->
     couch_server_sup:start_link(test_util:config_files()),
     ibrowse:start(),
     crypto:start(),
+    couch_config:set("replicator", "connection_timeout", "90000", false),
 
     Pairs = [
         {source_db_name(), target_db_name()},
@@ -287,6 +289,6 @@ replicate(Source, Target) ->
     receive
     {'DOWN', MonRef, process, Pid, Reason} ->
         etap:is(Reason, normal, "Replication finished successfully")
-    after 300000 ->
+    after 900000 ->
         etap:bail("Timeout waiting for replication to finish")
     end.


Mime
View raw message