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

Commit be0485e

Browse files
committed
wait longer for process death
...to, hopefully, reduce test failures in CI
1 parent c73fe72 commit be0485e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_util.erl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
%% unsubscribes
3333
-define(Wait, 200).
3434

35+
%% How to long wait for a process to die after an expected failure
36+
-define(DeathWait, 5000).
37+
3538
%% AMQP URI parsing test
3639
amqp_uri_parse_test() ->
3740
%% From the spec (adapted)
@@ -1076,7 +1079,7 @@ teardown_test() ->
10761079
wait_for_death(Pid) ->
10771080
Ref = erlang:monitor(process, Pid),
10781081
receive {'DOWN', Ref, process, Pid, _Reason} -> ok
1079-
after 1000 -> exit({timed_out_waiting_for_process_death, Pid})
1082+
after ?DeathWait -> exit({timed_out_waiting_for_process_death, Pid})
10801083
end.
10811084

10821085
latch_loop() ->

0 commit comments

Comments
 (0)