@@ -356,14 +356,9 @@ init_per_testcase(Testcase, Config) ->
356356 rabbit_ct_helpers :testcase_started (Config , Testcase ).
357357
358358end_per_testcase (Testcase , Config ) ->
359- % % Assert that every testcase cleaned up.
360- rabbit_ct_broker_helpers :rpc (Config , 0 , ? MODULE , delete_queues , []),
361- eventually (? _assertEqual ([], rpc (Config , rabbit_amqqueue , list , []))),
362- % % Terminate all connections and wait for sessions to terminate before
363- % % starting the next test case.
364- _ = rabbit_ct_broker_helpers :rpc (
365- Config , 0 ,
366- rabbit_networking , close_all_connections , [<<" test finished" >>]),
359+ % % Clean up any queues, connections, and sessions.
360+ rpc (Config , ? MODULE , delete_queues , []),
361+ ok = rpc (Config , rabbit_networking , close_all_connections , [<<" test finished" >>]),
367362 eventually (? _assertEqual ([], rpc (Config , rabbit_amqp_session , list_local , []))),
368363 % % Assert that global counters count correctly.
369364 eventually (? _assertMatch (#{publishers := 0 ,
0 commit comments