Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix unused variables

  • Loading branch information...
commit 215b6604dbd8f3466133fed94f3a6bbf1a966c5a 1 parent 400054f
@norton norton authored
Showing with 8 additions and 8 deletions.
  1. +3 −3 test/gproc_dist_tests.erl
  2. +5 −5 test/gproc_tests.erl
View
6 test/gproc_dist_tests.erl
@@ -106,14 +106,14 @@ t_simple_reg([H|_] = Ns) ->
?assertMatch(ok, t_lookup_everywhere(Name, Ns, undefined)),
?assertMatch(ok, t_call(P, die)).
-t_simple_reg_or_locate([A,B|_] = Ns) ->
+t_simple_reg_or_locate([A,B|_] = _Ns) ->
Name = ?T_NAME,
P1 = t_spawn(A),
- Ref = erlang:monitor(process, P1),
+ _Ref = erlang:monitor(process, P1),
?assertMatch({P1, the_value},
t_call(P1, {apply, gproc, reg_or_locate, [Name, the_value]})),
P2 = t_spawn(B),
- Ref2 = erlang:monitor(process, P2),
+ _Ref2 = erlang:monitor(process, P2),
?assertMatch({P1, the_value},
t_call(P2, {apply, gproc, reg_or_locate, [Name, other_value]})),
?assertMatch(ok, t_call(P1, die)),
View
10 test/gproc_tests.erl
@@ -171,21 +171,21 @@ t_reg_or_locate3() ->
fun() ->
P ! {self(), ok},
receive
- {'DOWN',Ref,_,_,_} -> ok
+ {'DOWN',_Ref,_,_,_} -> ok
end
end),
?assert(P =/= P1),
?assert(Value =:= the_value),
- Ref = erlang:monitor(process, P1),
+ _Ref = erlang:monitor(process, P1),
receive
{P1, ok} -> ok;
- {'DOWN', Ref, _, _, Reason} ->
+ {'DOWN', _Ref, _, _, _Reason} ->
?assert(process_died_unexpectedly)
end,
?assertMatch({P1, the_value}, gproc:reg_or_locate({n,l,foo})),
exit(P1, kill),
receive
- {'DOWN',R1,_,_,_} ->
+ {'DOWN',_R1,_,_,_} ->
ok
end.
@@ -518,7 +518,7 @@ t_qlc_dead() ->
gproc:reg({p, l, {p,2}}, y),
P0 ! {self(), ok},
receive
- {P, goodbye} -> ok;
+ {_P, goodbye} -> ok;
{'DOWN', Ref, _, _, _} ->
ok
end
Please sign in to comment.
Something went wrong with that request. Please try again.