diff --git a/test/conftest.py b/test/conftest.py
index <HASH>..<HASH> 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -87,8 +87,8 @@ def rabbit_config(request, rabbit_manager):
     conf['vhost'] = vhost
     conf['username'] = username
 
-    reset_rabbit_vhost(vhost, username, rabbit_manager)
     reset_rabbit_connections(vhost, rabbit_manager)
+    reset_rabbit_vhost(vhost, username, rabbit_manager)
 
     yield conf
 
diff --git a/test/test_queue_consumer.py b/test/test_queue_consumer.py
index <HASH>..<HASH> 100644
--- a/test/test_queue_consumer.py
+++ b/test/test_queue_consumer.py
@@ -279,8 +279,12 @@ def test_prefetch_count(rabbit_manager, rabbit_config):
     queue_consumer1.unregister_provider(handler1)
     queue_consumer2.unregister_provider(handler2)
 
+    queue_consumer1.stop()
+    queue_consumer2.stop()
+
 
 def test_kill_closes_connections(rabbit_manager, rabbit_config):
+
     container = Mock()
     container.config = rabbit_config
     container.max_workers = 1
reset rabbit connections before the vhost; stop queueconsumers before resetting connections

(avoiding bugs documented here <URL>)