diff options
Diffstat (limited to 'src/mango/src/mango_native_proc.erl')
-rw-r--r-- | src/mango/src/mango_native_proc.erl | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/mango/src/mango_native_proc.erl b/src/mango/src/mango_native_proc.erl index 4c536f871..ab161469a 100644 --- a/src/mango/src/mango_native_proc.erl +++ b/src/mango/src/mango_native_proc.erl @@ -367,22 +367,7 @@ validate_index_info(IndexInfo) -> -include_lib("eunit/include/eunit.hrl"). handle_garbage_collect_cast_test() -> - Pid = self(), - {_, TracerRef} = spawn_monitor(fun() -> - erlang:trace(Pid, true, [garbage_collection]), - receive {trace, Pid, gc_start, _} -> - erlang:trace(Pid, false, [garbage_collection]), - exit(gc_start) - end - end), - erlang:yield(), - ?assertEqual({noreply, []}, handle_cast(garbage_collect, [])), - receive - {'DOWN', TracerRef, _, _, Msg} -> ?assertEqual(gc_start, Msg) - after 1000 -> - erlang:error({assertion_failed, [{module, ?MODULE}, {line, ?LINE}, - {expected, gc_start}, {reason, timeout}]}) - end. + ?assertEqual({noreply, []}, handle_cast(garbage_collect, [])). handle_stop_cast_test() -> ?assertEqual({stop, normal, []}, handle_cast(stop, [])). |