Skip to content

Commit cc0458a

Browse files
authored
Merge pull request #13346 from rabbitmq/fix-recursion-error-in-rabbit_stream_queue_SUITE
Small programming error fixes in testsuites
2 parents 789fc64 + a5f30ea commit cc0458a

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

.github/workflows/test-make-target.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
- name: RUN TESTS
9191
if: inputs.plugin != 'rabbitmq_cli'
9292
run: |
93+
sudo netstat -ntp
9394
make -C deps/${{ inputs.plugin }} ${{ inputs.make_target }} RABBITMQ_METADATA_STORE=${{ inputs.metadata_store }}
9495
9596
# rabbitmq_cli needs a correct broker version for two of its tests.

deps/rabbit/test/amqp_auth_SUITE.erl

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,17 @@ init_per_group(Group, Config0) ->
120120
Config1,
121121
rabbit_ct_broker_helpers:setup_steps() ++
122122
rabbit_ct_client_helpers:setup_steps()),
123-
Vhost = <<"test vhost">>,
124-
User = <<"test user">>,
125-
ok = rabbit_ct_broker_helpers:add_vhost(Config, Vhost),
126-
ok = rabbit_ct_broker_helpers:add_user(Config, User),
127-
[{test_vhost, Vhost},
128-
{test_user, User}] ++ Config.
123+
case Config of
124+
_ when is_list(Config) ->
125+
Vhost = <<"test vhost">>,
126+
User = <<"test user">>,
127+
ok = rabbit_ct_broker_helpers:add_vhost(Config, Vhost),
128+
ok = rabbit_ct_broker_helpers:add_user(Config, User),
129+
[{test_vhost, Vhost},
130+
{test_user, User}] ++ Config;
131+
{skip, _} = Skip ->
132+
Skip
133+
end.
129134

130135
end_per_group(_Group, Config) ->
131136
ok = rabbit_ct_broker_helpers:delete_user(Config, ?config(test_user, Config)),

deps/rabbit/test/rabbit_stream_queue_SUITE.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2743,7 +2743,7 @@ retry_if_coordinator_unavailable(Config, Server, Cmd, Retry) ->
27432743
case re:run(Msg, ".*coordinator_unavailable.*", [{capture, none}]) of
27442744
match ->
27452745
ct:pal("Attempt to execute command ~p failed, coordinator unavailable", [Cmd]),
2746-
retry_if_coordinator_unavailable(Config, Ch, Cmd, Retry - 1);
2746+
retry_if_coordinator_unavailable(Config, Server, Cmd, Retry - 1);
27472747
_ ->
27482748
exit(Error)
27492749
end

deps/rabbit/test/unit_credit_flow_SUITE.erl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
-compile(export_all).
1313

14+
suite() ->
15+
[{timetrap, {minutes, 3}}].
16+
1417
all() ->
1518
[
1619
{group, sequential_tests}

0 commit comments

Comments
 (0)