diff options
author | Sverker Eriksson <[email protected]> | 2018-11-20 13:48:58 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-11-20 13:48:58 +0100 |
commit | 9df5b05068228e4291d72a87946e303874579960 (patch) | |
tree | bd03ec9a8581e111a2842a00c39a7f60931d9120 /lib | |
parent | 625a9838ee4e494d5c055986ceff66a32c38a05c (diff) | |
download | otp-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.erl | 5 |
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), |