@@ -342,14 +342,9 @@ init_per_testcase(Testcase, Config) ->
342342 rabbit_ct_helpers :testcase_started (Config , Testcase ).
343343
344344end_per_testcase (Testcase , Config ) ->
345- % % Assert that every testcase cleaned up.
346- rabbit_ct_broker_helpers :rpc (Config , 0 , ? MODULE , delete_queues , []),
347- eventually (? _assertEqual ([], rpc (Config , rabbit_amqqueue , list , []))),
348- % % Terminate all connections and wait for sessions to terminate before
349- % % starting the next test case.
350- _ = rabbit_ct_broker_helpers :rpc (
351- Config , 0 ,
352- rabbit_networking , close_all_connections , [<<" test finished" >>]),
345+ % % Clean up any queues, connections, and sessions.
346+ rpc (Config , ? MODULE , delete_queues , []),
347+ ok = rpc (Config , rabbit_networking , close_all_connections , [<<" test finished" >>]),
353348 eventually (? _assertEqual ([], rpc (Config , rabbit_amqp_session , list_local , []))),
354349 % % Assert that global counters count correctly.
355350 eventually (? _assertMatch (#{publishers := 0 ,
0 commit comments