summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@apache.org>2021-03-23 11:03:57 -0400
committerNick Vatamaniuc <nickva@users.noreply.github.com>2021-03-23 11:32:38 -0400
commit739db6a1115588630f8bfe34989f8682dc3fc2d7 (patch)
tree1836f536f7b1ebfbe95ff24f275545f1427ec71f
parenteb94a0e459f89601b1eb84ec506b2ad24ccd45f0 (diff)
downloadcouchdb-739db6a1115588630f8bfe34989f8682dc3fc2d7.tar.gz
Make "make leaves" replication test less flaky
It's a CPU-intensive test and so it often times out in CI. So try to increase its timeout and also decrease the size of attachments and the number of design docs. We cannot decrease the number of leaves as that's the thing that's being tested.
-rw-r--r--src/couch_replicator/test/eunit/couch_replicator_many_leaves_tests.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/couch_replicator/test/eunit/couch_replicator_many_leaves_tests.erl b/src/couch_replicator/test/eunit/couch_replicator_many_leaves_tests.erl
index 3dbfa6aba..a6623eb04 100644
--- a/src/couch_replicator/test/eunit/couch_replicator_many_leaves_tests.erl
+++ b/src/couch_replicator/test/eunit/couch_replicator_many_leaves_tests.erl
@@ -20,7 +20,7 @@
-define(DOCS_CONFLICTS, [
{<<"doc1">>, 10},
% use some _design docs as well to test the special handling for them
- {<<"_design/doc2">>, 100},
+ {<<"_design/doc2">>, 10},
% a number > MaxURLlength (7000) / length(DocRevisionString)
{<<"doc3">>, 210}
]).
@@ -41,7 +41,7 @@ docs_with_many_leaves_test_() ->
fun setup/0,
fun teardown/1,
[
- ?TDEF_FE(should_replicate_doc_with_many_leaves, 180)
+ ?TDEF_FE(should_replicate_doc_with_many_leaves, 240)
]
}
}
@@ -132,7 +132,7 @@ add_attachments(#{} = SourceDb, NumAtts,
NewDocs = lists:foldl(fun
(#doc{atts = Atts, revs = {Pos, [Rev | _]}} = Doc, Acc) ->
NewAtts = lists:foldl(fun(I, AttAcc) ->
- [att(I, {Pos, Rev}, 100) | AttAcc]
+ [att(I, {Pos, Rev}, 10) | AttAcc]
end, [], lists:seq(1, NumAtts)),
[Doc#doc{atts = Atts ++ NewAtts} | Acc]
end, [], SourceDocs),