Skip to content

Commit

Permalink
Merge pull request #13002 from rabbitmq/speed-up-tests
Browse files Browse the repository at this point in the history
Speed up tests
  • Loading branch information
michaelklishin authored Dec 30, 2024
2 parents b836ca1 + 42ede4a commit d578176
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions deps/rabbit/test/amqp_client_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -6249,7 +6249,7 @@ receive_all_messages0(Receiver, Accept, Acc) ->
false -> ok
end,
receive_all_messages0(Receiver, Accept, [Msg | Acc])
after 5000 ->
after 2000 ->
lists:reverse(Acc)
end.

Expand Down Expand Up @@ -6319,7 +6319,7 @@ count_received_messages0(Receiver, Count) ->
receive
{amqp10_msg, Receiver, _Msg} ->
count_received_messages0(Receiver, Count + 1)
after 5000 ->
after 2000 ->
Count
end.

Expand Down Expand Up @@ -6357,7 +6357,7 @@ assert_link_credit_runs_out(Sender, Left) ->
receive {amqp10_event, {link, Sender, credited}} ->
ct:pal("credited with ~b messages left", [Left]),
assert_link_credit_runs_out(Sender, Left - 1)
after 30000 ->
after 1000 ->
ct:pal("insufficient link credit with ~b messages left", [Left]),
ok
end
Expand Down
2 changes: 1 addition & 1 deletion deps/rabbitmq_mqtt/test/util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ expect_publishes(Client, Topic, [Payload|Rest])
payload := Other}} ->
ct:fail("Received unexpected PUBLISH payload. Expected: ~p Got: ~p",
[Payload, Other])
after 30_000 ->
after 5000 ->
{publish_not_received, Payload}
end.

Expand Down

0 comments on commit d578176

Please sign in to comment.