diff options
author | Jay Doane <jaydoane@apache.org> | 2022-03-23 12:09:09 -0700 |
---|---|---|
committer | Jay Doane <jaydoane@apache.org> | 2022-03-23 13:11:35 -0700 |
commit | bf0483b3a976f59c22be286c726b938471428bb6 (patch) | |
tree | e959d0ab8cd5cb07a88e589119a7ea208b51524a | |
parent | 2f56adb39df11499dfeea66d316ef7110f47458b (diff) | |
download | couchdb-smoosh-tests-timeout.tar.gz |
Increase timeout for smoosh testssmoosh-tests-timeout
As seen in recent CI:
smoosh_tests:75: should_enqueue...*timed out*
smoosh_tests:83: should_persist_queue...*timed out*
-rw-r--r-- | src/smoosh/test/smoosh_tests.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/smoosh/test/smoosh_tests.erl b/src/smoosh/test/smoosh_tests.erl index adabc8c49..81ee9d60d 100644 --- a/src/smoosh/test/smoosh_tests.erl +++ b/src/smoosh/test/smoosh_tests.erl @@ -72,15 +72,15 @@ make_test_case(Type, Funs) -> {foreachx, fun setup/1, fun teardown/2, [{Type, Fun} || Fun <- Funs]}. should_enqueue(ChannelType, DbName) -> - ?_test(begin + {timeout, 20, ?_test(begin ok = grow_db_file(DbName, 300), ok = wait_enqueue(ChannelType, DbName), ?assert(is_enqueued(ChannelType, DbName)), ok - end). + end)}. should_persist_queue(ChannelType, DbName) -> - ?_test(begin + {timeout, 20, ?_test(begin {ok, ChannelPid} = smoosh_server:get_channel(ChannelType), ok = grow_db_file(DbName, 300), ok = wait_enqueue(ChannelType, DbName), @@ -91,7 +91,7 @@ should_persist_queue(ChannelType, DbName) -> Q1 = channel_queue(ChannelType), ?assertEqual(Q0, Q1), ok - end). + end)}. grow_db_file(DbName, SizeInKb) -> {ok, Db} = couch_db:open_int(DbName, [?ADMIN_CTX]), @@ -122,7 +122,7 @@ wait_enqueue(ChannelType, DbName) -> true -> ok end - end). + end, 20000). channel_queue(ChannelType) -> Q0 = smoosh_priority_queue:new(ChannelType), |