Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Commit

Permalink
wait longer for process death
Browse files Browse the repository at this point in the history
...to, hopefully, reduce test failures in CI
  • Loading branch information
rade committed Mar 31, 2014
1 parent c73fe72 commit be0485e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
%% unsubscribes
-define(Wait, 200).

%% How to long wait for a process to die after an expected failure
-define(DeathWait, 5000).

%% AMQP URI parsing test
amqp_uri_parse_test() ->
%% From the spec (adapted)
Expand Down Expand Up @@ -1076,7 +1079,7 @@ teardown_test() ->
wait_for_death(Pid) ->
Ref = erlang:monitor(process, Pid),
receive {'DOWN', Ref, process, Pid, _Reason} -> ok
after 1000 -> exit({timed_out_waiting_for_process_death, Pid})
after ?DeathWait -> exit({timed_out_waiting_for_process_death, Pid})
end.

latch_loop() ->
Expand Down

0 comments on commit be0485e

Please sign in to comment.