diff options
Diffstat (limited to 'src/fabric/test/fabric2_test_util.erl')
-rw-r--r-- | src/fabric/test/fabric2_test_util.erl | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/fabric/test/fabric2_test_util.erl b/src/fabric/test/fabric2_test_util.erl index b4dc978a8..acbe252b1 100644 --- a/src/fabric/test/fabric2_test_util.erl +++ b/src/fabric/test/fabric2_test_util.erl @@ -14,9 +14,6 @@ -export([ - pmap/2, - pmap/3, - tx_too_old_mock_erlfdb/0, tx_too_old_setup_errors/2, tx_too_old_reset_errors/0, @@ -28,26 +25,6 @@ -define(PDICT_ERROR_IN_USER_FUN, '$fabric2_error_throw_in_user_fun'). -pmap(Fun, Args) -> - pmap(Fun, Args, []). - - -pmap(Fun, Args, Opts) -> - Refs = lists:map(fun(Arg) -> - {_, Ref} = spawn_monitor(fun() -> exit({'$pmap_res', Fun(Arg)}) end), - Ref - end, Args), - Timeout = fabric2_util:get_value(timeout, Opts, 5000), - lists:map(fun(Ref) -> - receive - {'DOWN', Ref, _, _, {'$pmap_res', Res}} -> Res; - {'DOWN', Ref, _, _, Error} -> {pmap_error, Error} - after Timeout -> - {pmap_error, timeout} - end - end, Refs). - - % Set of function to test scenarios where the FDB throws transaction_too_long % (1007) errors. The general pattern is to call tx_too_old_mock_erlfdb() in % setup. Then, before tests call tx_too_old_setup_errors(UserErrs, FoldErrs) |