summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-11-19 14:36:40 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-11-19 14:36:40 +0000
commit21984c64fc401d9f1c1bf11c185c78dbf726dc15 (patch)
tree760c24ffa03a06ec68b3a320fd210bb549d97d17
parentbf0e335bae5fa304abc3fda05c75f0d073e2bf01 (diff)
parent82cdedfe4ce48bd9b457caefc82457a3dbca06d5 (diff)
downloadrabbitmq-server-git-21984c64fc401d9f1c1bf11c185c78dbf726dc15.tar.gz
stable to default
-rw-r--r--test/src/supervisor2_tests.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/src/supervisor2_tests.erl b/test/src/supervisor2_tests.erl
index 4d362e5bca..195211b07a 100644
--- a/test/src/supervisor2_tests.erl
+++ b/test/src/supervisor2_tests.erl
@@ -49,7 +49,12 @@ check_shutdown(SigStop, Iterations, ChildCount, SupTimeout) ->
R
end, ok, lists:seq(1, Iterations)),
unlink(Sup),
+ MSupRef = erlang:monitor(process, Sup),
exit(Sup, shutdown),
+ receive
+ {'DOWN', MSupRef, process, Sup, _Reason} ->
+ ok
+ end,
Res.
start_link() ->