Skip to content

Commit 2adcdc1

Browse files
committed
Attempt to de-flake
This commit attempts to remove the following flake: ``` {amqp_client_SUITE,server_closes_link,1113} {badmatch,[<14696.3530.0>,<14696.3453.0>]} ``` by waiting after each test case until sessions were de-registered from the 1st RabbitMQ node.
1 parent dcb2fe0 commit 2adcdc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deps/rabbit/test/amqp_client_SUITE.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ init_per_testcase(Testcase, Config) ->
258258
end_per_testcase(Testcase, Config) ->
259259
%% Assert that every testcase cleaned up.
260260
eventually(?_assertEqual([], rpc(Config, rabbit_amqqueue, list, []))),
261+
%% Wait for sessions to terminate before starting the next test case.
262+
eventually(?_assertEqual([], rpc(Config, rabbit_amqp_session, list_local, []))),
261263
%% Assert that global counters count correctly.
262264
eventually(?_assertMatch(#{publishers := 0,
263265
consumers := 0},

0 commit comments

Comments
 (0)