summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSverker Eriksson <sverker@erlang.org>2020-05-12 18:42:13 +0200
committerSverker Eriksson <sverker@erlang.org>2020-05-12 18:42:13 +0200
commit76b4fd803461ab53223fac46f021d32f6392c07c (patch)
tree9d68d35b98b29b09236a8f2e4d6ba7b6c687abad
parent9639877ea11d6a32ca6e46410b8a48db245b72d8 (diff)
downloaderlang-76b4fd803461ab53223fac46f021d32f6392c07c.tar.gz
ets_SUITE: Shorten some test cases
as they tend to time out on slow/single-core machines.
-rw-r--r--lib/stdlib/test/ets_SUITE.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/stdlib/test/ets_SUITE.erl b/lib/stdlib/test/ets_SUITE.erl
index 3b2dde6b9b..76e78725f3 100644
--- a/lib/stdlib/test/ets_SUITE.erl
+++ b/lib/stdlib/test/ets_SUITE.erl
@@ -1278,9 +1278,9 @@ ets_insert_new_with_check(Table, ToInsert) ->
t_insert_list_parallel_do(Opts) ->
[(fun(I) ->
- t_insert_list_parallel_do(Opts, I, 2, 100, 5000),
- t_insert_list_parallel_do(Opts, I, 10, 100, 500),
- t_insert_list_parallel_do(Opts, I, 1000, 100, 50),
+ t_insert_list_parallel_do(Opts, I, 2, 100, 500),
+ t_insert_list_parallel_do(Opts, I, 10, 100, 100),
+ t_insert_list_parallel_do(Opts, I, 1000, 100, 10),
t_insert_list_parallel_do(Opts, I, 50000, 3, 1)
end)(InsertFun) || InsertFun <- [fun ets_insert_with_check/2,
fun ets_insert_new_with_check/2]].
@@ -5118,7 +5118,7 @@ test_delete_table_while_size_snapshot_helper(TableType) ->
Problem -> TopParent ! Problem
end || _ <- Pids]
end,
- 15000),
+ 100*erlang:system_info(schedulers_online)),
receive
Problem -> throw(Problem)
after 0 -> ok