aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-11-20 13:48:58 +0100
committerSverker Eriksson <[email protected]>2018-11-20 13:48:58 +0100
commit9df5b05068228e4291d72a87946e303874579960 (patch)
treebd03ec9a8581e111a2842a00c39a7f60931d9120 /lib
parent625a9838ee4e494d5c055986ceff66a32c38a05c (diff)
downloadotp-9df5b05068228e4291d72a87946e303874579960.tar.gz
otp-9df5b05068228e4291d72a87946e303874579960.tar.bz2
otp-9df5b05068228e4291d72a87946e303874579960.zip
stdlib: Fix bug in ets_SUITE:smp_ordered_iteration
Did fail on really slow unlucky machines.
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/test/ets_SUITE.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/stdlib/test/ets_SUITE.erl b/lib/stdlib/test/ets_SUITE.erl
index 501588ad44..22c77aa172 100644
--- a/lib/stdlib/test/ets_SUITE.erl
+++ b/lib/stdlib/test/ets_SUITE.erl
@@ -6068,7 +6068,10 @@ smp_ordered_iteration_do(Opts) ->
NVolatile = KeyRange div 2,
prefill_table(T, KeyRange, NVolatile, fun(K) -> {KeyFun(K, volatile), 0} end),
- InitF = fun (_) -> #{} end,
+ InitF = fun (_) -> #{insert => 0, delete => 0,
+ select_delete_bk => 0, select_delete_pbk => 0,
+ select_replace_bk => 0, select_replace_pbk => 0}
+ end,
ExecF = fun (Counters) ->
K = rand:uniform(KeyRange),
Key = KeyFun(K, volatile),