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 | 82cdedfe4ce48bd9b457caefc82457a3dbca06d5 (patch) | |
| tree | 19f622eb36e40daf51d3bc04c51062472e451118 /test/src | |
| parent | 4446c2559ff0534930aca62f90c48bef6a878b98 (diff) | |
| download | rabbitmq-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.erl | 5 |
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() -> |
