Skip to content

Commit d036cf1

Browse files
committed
auth_SUITE: Wait for connection tracking to be up-to-date
... when testing user limits [How] This is the same fix as the one for the vhost limits test case made in commit 5aab965. While here, fix a compiler warning about an unused variable. (cherry picked from commit 02b1561)
1 parent 141f183 commit d036cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbitmq_mqtt/test/auth_SUITE.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,6 @@ vhost_connection_limit(Config) ->
12521252
ok = rabbit_ct_broker_helpers:clear_vhost_limit(Config, 0, <<"/">>).
12531253

12541254
count_connections_per_vhost(Config) ->
1255-
NodeConfig = rabbit_ct_broker_helpers:get_node_config(Config, 0),
12561255
rabbit_ct_broker_helpers:rpc(
12571256
Config, 0,
12581257
rabbit_connection_tracking, count_local_tracked_items_in_vhost,
@@ -1277,6 +1276,7 @@ user_connection_limit(Config) ->
12771276
ok = rabbit_ct_broker_helpers:set_user_limits(Config, DefaultUser, #{max_connections => 1}),
12781277
{ok, C1} = connect_anonymous(Config, <<"client1">>),
12791278
{ok, _} = emqtt:connect(C1),
1279+
?awaitMatch(1, count_connections_per_vhost(Config), 30000),
12801280
{ok, C2} = connect_anonymous(Config, <<"client2">>),
12811281
ExpectedError = expected_connection_limit_error(Config),
12821282
unlink(C2),

0 commit comments

Comments
 (0)