diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-11-19 14:36:27 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-11-19 14:36:27 +0000 |
commit | 5cb58bd01ba47dd108eef704d65515fdbca45e2b (patch) | |
tree | 19f622eb36e40daf51d3bc04c51062472e451118 | |
parent | 9ae81860dc014327fd49ef6270f722d5ec0a38c4 (diff) | |
download | rabbitmq-server-5cb58bd01ba47dd108eef704d65515fdbca45e2b.tar.gz |
Don't proceed until the supervisor has actually gone.
-rw-r--r-- | test/src/supervisor2_tests.erl | 5 |
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() -> |