You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2024/06/01 22:09:08 UTC

(couchdb) 01/01: Increase timeout for replicator test

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

jaydoane pushed a commit to branch increase-replicator-test-timeout
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit b0467aed62aa54e5ea1cbdaa1af47f1fdcddce59
Author: Jay Doane <ja...@apache.org>
AuthorDate: Sat Jun 1 15:08:28 2024 -0700

    Increase timeout for replicator test
    
    The function `t_scheduler_docs_total_rows` contains a
    `test_util:wait/3` function with a timeout of 14 seconds, so increase
    these timeouts to match, and try to avoid this test failure:
    ```
      couch_replicator_scheduler_docs_tests:60: -scheduler_docs_test_main_db_test_/0-fun-0- (t_scheduler_docs_total_rows)...*timed out*
    in function timer:sleep/1 (timer.erl, line 235)
    in call from test_util:wait/5 (src/test_util.erl, line 237)
    in call from couch_replicator_scheduler_docs_tests:t_scheduler_docs_total_rows/1 (test/eunit/couch_replicator_scheduler_docs_tests.erl, line 131)
    in call from eunit_test:run_testfun/1 (eunit_test.erl, line 71)
    in call from eunit_proc:run_test/1 (eunit_proc.erl, line 543)
    in call from eunit_proc:with_timeout/3 (eunit_proc.erl, line 368)
    in call from eunit_proc:handle_test/2 (eunit_proc.erl, line 526)
    in call from eunit_proc:tests_inorder/3 (eunit_proc.erl, line 468)
      undefined
    ```
---
 .../test/eunit/couch_replicator_scheduler_docs_tests.erl              | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/couch_replicator/test/eunit/couch_replicator_scheduler_docs_tests.erl b/src/couch_replicator/test/eunit/couch_replicator_scheduler_docs_tests.erl
index 15789da69..acc6abb3a 100644
--- a/src/couch_replicator/test/eunit/couch_replicator_scheduler_docs_tests.erl
+++ b/src/couch_replicator/test/eunit/couch_replicator_scheduler_docs_tests.erl
@@ -57,7 +57,7 @@ scheduler_docs_test_main_db_test_() ->
         fun setup_main_replicator_db/0,
         fun teardown/1,
         [
-            ?TDEF_FE(t_scheduler_docs_total_rows, 10)
+            ?TDEF_FE(t_scheduler_docs_total_rows, 15)
         ]
     }.
 
@@ -67,7 +67,7 @@ scheduler_docs_test_prefixed_db_test_() ->
         fun setup_prefixed_replicator_db/0,
         fun teardown/1,
         [
-            ?TDEF_FE(t_scheduler_docs_total_rows, 10)
+            ?TDEF_FE(t_scheduler_docs_total_rows, 15)
         ]
     }.