Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (17 sloc) 462 Bytes
-compile({parse_transform, gproc_pt}).
reg_and_send_test_() ->
fun() -> application:start(gproc) end,
fun(_) -> application:stop(gproc) end,
[{"gproc", fun gproc/0}]
gproc() ->
gproc:reg({n, l, <<"test">>}),
Msg = random:uniform(1000),
{n, l, <<"test">>} ! Msg,
Echo = receive
V -> V
?assertEqual(Echo, Msg).
Jump to Line
Something went wrong with that request. Please try again.