diff options
author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-03-09 00:14:21 +0000 |
---|---|---|
committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-03-09 00:14:21 +0000 |
commit | 4fd145f52df6e05353e5b0cfb3b30fb9081a50a7 (patch) | |
tree | bc16d9eef889113e21896228126c0a0511c9ce36 /src/rabbit_tests.erl | |
parent | 282e6115095e9ed2a60c2b9f5858ff2db17d7d3a (diff) | |
download | rabbitmq-server-4fd145f52df6e05353e5b0cfb3b30fb9081a50a7.tar.gz |
close channel when test finishes
Diffstat (limited to 'src/rabbit_tests.erl')
-rw-r--r-- | src/rabbit_tests.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl index 4ad35696..3416fe0d 100644 --- a/src/rabbit_tests.erl +++ b/src/rabbit_tests.erl @@ -1290,13 +1290,16 @@ test_confirms() -> after 1000 -> ok end, - %% Delete queue + %% Cleanup rabbit_channel:do(Ch, #'queue.delete'{queue = QName2}), receive #'queue.delete_ok'{} -> ok after 1000 -> throw(failed_to_cleanup_queue) end, + unlink(Ch), + ok = rabbit_channel:shutdown(Ch), + passed. test_statistics() -> |