summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@apache.org>2017-07-31 18:41:26 +0000
committerNick Vatamaniuc <nickva@users.noreply.github.com>2017-07-31 15:18:55 -0400
commit0d1994e2ea4f2bd90d2b0aa0cd1e594acc84e426 (patch)
tree877145b650029002804cf493761b110aaf56719a
parent2e7ca45b364467f164d2ecbe8846878234d36a47 (diff)
downloadcouchdb-0d1994e2ea4f2bd90d2b0aa0cd1e594acc84e426.tar.gz
Increase timeouts in replicator compactor tests
Also decrease number of rounds from 5 to 3. With: `VBoxManage bandwidthctl ${VM} set Limit --limit 100K` It needed over 400 seconds to pass with 5 rounds. Fixes #725
-rw-r--r--src/couch_replicator/test/couch_replicator_compact_tests.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/couch_replicator/test/couch_replicator_compact_tests.erl b/src/couch_replicator/test/couch_replicator_compact_tests.erl
index 28f46e423..a98feee66 100644
--- a/src/couch_replicator/test/couch_replicator_compact_tests.erl
+++ b/src/couch_replicator/test/couch_replicator_compact_tests.erl
@@ -22,9 +22,9 @@
]).
-define(ATTFILE, filename:join([?FIXTURESDIR, "logo.png"])).
--define(DELAY, 100).
--define(TIMEOUT, 30000).
--define(TIMEOUT_WRITER, 18000).
+-define(DELAY, 500).
+-define(TIMEOUT, 360000).
+-define(TIMEOUT_WRITER, 100000).
-define(TIMEOUT_EUNIT, ?TIMEOUT div 1000 + 70).
setup() ->
@@ -75,7 +75,7 @@ should_populate_replicate_compact({From, To}, {_Ctx, {Source, Target}}) ->
{inorder, [
should_run_replication(RepPid, RepId, Source, Target),
should_all_processes_be_alive(RepPid, Source, Target),
- should_populate_and_compact(RepPid, Source, Target, 50, 5),
+ should_populate_and_compact(RepPid, Source, Target, 50, 3),
should_wait_target_in_sync(Source, Target),
should_ensure_replication_still_running(RepPid, RepId, Source, Target),
should_cancel_replication(RepId, RepPid),