Merge pull request #13346 from rabbitmq/fix-recursion-error-in-rabbit_stream_queue_SUITE

Small programming error fixes in testsuites
This commit is contained in:
Jean-Sébastien Pédron 2025-02-20 11:23:18 +01:00 committed by GitHub
commit cc0458a139
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 7 deletions

View File

@ -90,6 +90,7 @@ jobs:
- name: RUN TESTS
if: inputs.plugin != 'rabbitmq_cli'
run: |
sudo netstat -ntp
make -C deps/${{ inputs.plugin }} ${{ inputs.make_target }} RABBITMQ_METADATA_STORE=${{ inputs.metadata_store }}
# rabbitmq_cli needs a correct broker version for two of its tests.

View File

@ -120,12 +120,17 @@ init_per_group(Group, Config0) ->
Config1,
rabbit_ct_broker_helpers:setup_steps() ++
rabbit_ct_client_helpers:setup_steps()),
case Config of
_ when is_list(Config) ->
Vhost = <<"test vhost">>,
User = <<"test user">>,
ok = rabbit_ct_broker_helpers:add_vhost(Config, Vhost),
ok = rabbit_ct_broker_helpers:add_user(Config, User),
[{test_vhost, Vhost},
{test_user, User}] ++ Config.
{test_user, User}] ++ Config;
{skip, _} = Skip ->
Skip
end.
end_per_group(_Group, Config) ->
ok = rabbit_ct_broker_helpers:delete_user(Config, ?config(test_user, Config)),

View File

@ -2743,7 +2743,7 @@ retry_if_coordinator_unavailable(Config, Server, Cmd, Retry) ->
case re:run(Msg, ".*coordinator_unavailable.*", [{capture, none}]) of
match ->
ct:pal("Attempt to execute command ~p failed, coordinator unavailable", [Cmd]),
retry_if_coordinator_unavailable(Config, Ch, Cmd, Retry - 1);
retry_if_coordinator_unavailable(Config, Server, Cmd, Retry - 1);
_ ->
exit(Error)
end

View File

@ -11,6 +11,9 @@
-compile(export_all).
suite() ->
[{timetrap, {minutes, 3}}].
all() ->
[
{group, sequential_tests}