Skip to content

Commit 9095f7d

Browse files
committed
Fix test flake
Increase waiting for credit being applied as described in commit aeedad7 since this test case still flakes rarely with: ``` === === Reason: {assertEqual,[{module,amqp_client_SUITE}, {line,3030}, {expression,"amqp10_msg : body ( Msg1 )"}, {expected,[<<"1">>]}, {value,[<<"2">>]}]} in function amqp_client_SUITE:detach_requeues_two_connections/2 (amqp_client_SUITE.erl, line 3030) in call from test_server:ts_tc/3 (test_server.erl, line 1793) in call from test_server:run_test_case_eval1/6 (test_server.erl, line 1302) in call from test_server:run_test_case_eval/9 (test_server.erl, line 1234) ```
1 parent db6401d commit 9095f7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit/test/amqp_client_SUITE.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3006,15 +3006,15 @@ detach_requeues_two_connections(QType, Config) ->
30063006
ok = gen_statem:cast(Session0, {flow_session, #'v1_0.flow'{incoming_window = {uint, 1}}}),
30073007
ok = amqp10_client:flow_link_credit(Receiver0, 50, never),
30083008
%% Wait for credit being applied to the queue.
3009-
timer:sleep(10),
3009+
timer:sleep(100),
30103010

30113011
{ok, Receiver1} = amqp10_client:attach_receiver_link(Session1, <<"receiver 1">>, Address, unsettled),
30123012
receive {amqp10_event, {link, Receiver1, attached}} -> ok
30133013
after 5000 -> ct:fail({missing_event, ?LINE})
30143014
end,
30153015
ok = amqp10_client:flow_link_credit(Receiver1, 40, never),
30163016
%% Wait for credit being applied to the queue.
3017-
timer:sleep(10),
3017+
timer:sleep(100),
30183018

30193019
NumMsgs = 6,
30203020
[begin

0 commit comments

Comments
 (0)