summaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-11-19 14:36:27 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-11-19 14:36:27 +0000
commit82cdedfe4ce48bd9b457caefc82457a3dbca06d5 (patch)
tree19f622eb36e40daf51d3bc04c51062472e451118 /test/src
parent4446c2559ff0534930aca62f90c48bef6a878b98 (diff)
downloadrabbitmq-server-git-82cdedfe4ce48bd9b457caefc82457a3dbca06d5.tar.gz
Don't proceed until the supervisor has actually gone.
Diffstat (limited to 'test/src')
-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() ->