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 - name: RUN TESTS
if: inputs.plugin != 'rabbitmq_cli' if: inputs.plugin != 'rabbitmq_cli'
run: | run: |
sudo netstat -ntp
make -C deps/${{ inputs.plugin }} ${{ inputs.make_target }} RABBITMQ_METADATA_STORE=${{ inputs.metadata_store }} 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. # rabbitmq_cli needs a correct broker version for two of its tests.

View File

@ -120,12 +120,17 @@ init_per_group(Group, Config0) ->
Config1, Config1,
rabbit_ct_broker_helpers:setup_steps() ++ rabbit_ct_broker_helpers:setup_steps() ++
rabbit_ct_client_helpers:setup_steps()), rabbit_ct_client_helpers:setup_steps()),
Vhost = <<"test vhost">>, case Config of
User = <<"test user">>, _ when is_list(Config) ->
ok = rabbit_ct_broker_helpers:add_vhost(Config, Vhost), Vhost = <<"test vhost">>,
ok = rabbit_ct_broker_helpers:add_user(Config, User), User = <<"test user">>,
[{test_vhost, Vhost}, ok = rabbit_ct_broker_helpers:add_vhost(Config, Vhost),
{test_user, User}] ++ Config. ok = rabbit_ct_broker_helpers:add_user(Config, User),
[{test_vhost, Vhost},
{test_user, User}] ++ Config;
{skip, _} = Skip ->
Skip
end.
end_per_group(_Group, Config) -> end_per_group(_Group, Config) ->
ok = rabbit_ct_broker_helpers:delete_user(Config, ?config(test_user, 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 case re:run(Msg, ".*coordinator_unavailable.*", [{capture, none}]) of
match -> match ->
ct:pal("Attempt to execute command ~p failed, coordinator unavailable", [Cmd]), 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) exit(Error)
end end

View File

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