summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-09-12 18:02:58 +0100
committerSimon MacMullen <simon@rabbitmq.com>2014-09-12 18:02:58 +0100
commit50019174c7567fbfcc9dd34d479aa7111d7de88e (patch)
treefc0afdac506ccadd3421ede5ab9424b5c189898d /src
parent3f3131658a89b596e76616e747fe1c61db03c1f3 (diff)
downloadrabbitmq-server-50019174c7567fbfcc9dd34d479aa7111d7de88e.tar.gz
Post bug 21446 this test became racy since it is supposed to kill the queue and not have it restart - so let's kill the supervisor first.
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_tests.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rabbit_tests.erl b/src/rabbit_tests.erl
index 7018bffe..8dc51f37 100644
--- a/src/rabbit_tests.erl
+++ b/src/rabbit_tests.erl
@@ -2892,6 +2892,8 @@ test_queue_recover() ->
rabbit_amqqueue:declare(test_queue(), true, false, [], none),
publish_and_confirm(Q, <<>>, Count),
+ [{_, SupPid, _, _}] = supervisor:which_children(rabbit_amqqueue_sup_sup),
+ exit(SupPid, kill),
exit(QPid, kill),
MRef = erlang:monitor(process, QPid),
receive {'DOWN', MRef, process, QPid, _Info} -> ok