You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2017/07/31 19:18:58 UTC

[couchdb] branch master updated: Increase timeouts in replicator compactor tests

This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 0d1994e  Increase timeouts in replicator compactor tests
0d1994e is described below

commit 0d1994e2ea4f2bd90d2b0aa0cd1e594acc84e426
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Mon Jul 31 18:41:26 2017 +0000

    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
---
 src/couch_replicator/test/couch_replicator_compact_tests.erl | 8 ++++----
 1 file 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 28f46e4..a98feee 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),

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