summaryrefslogtreecommitdiff
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
commit5cb58bd01ba47dd108eef704d65515fdbca45e2b (patch)
tree19f622eb36e40daf51d3bc04c51062472e451118
parent9ae81860dc014327fd49ef6270f722d5ec0a38c4 (diff)
downloadrabbitmq-server-5cb58bd01ba47dd108eef704d65515fdbca45e2b.tar.gz
Don't proceed until the supervisor has actually gone.
-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 4d362e5b..195211b0 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() ->