Skip to content

Commit 151e289

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.
1 parent 438b498 commit 151e289

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
@@ -1262,7 +1262,6 @@ vhost_connection_limit(Config) ->
12621262
ok = rabbit_ct_broker_helpers:clear_vhost_limit(Config, 0, <<"/">>).
12631263

12641264
count_connections_per_vhost(Config) ->
1265-
NodeConfig = rabbit_ct_broker_helpers:get_node_config(Config, 0),
12661265
rabbit_ct_broker_helpers:rpc(
12671266
Config, 0,
12681267
rabbit_connection_tracking, count_local_tracked_items_in_vhost,
@@ -1287,6 +1286,7 @@ user_connection_limit(Config) ->
12871286
ok = rabbit_ct_broker_helpers:set_user_limits(Config, DefaultUser, #{max_connections => 1}),
12881287
{ok, C1} = connect_anonymous(Config, <<"client1">>),
12891288
{ok, _} = emqtt:connect(C1),
1289+
?awaitMatch(1, count_connections_per_vhost(Config), 30000),
12901290
{ok, C2} = connect_anonymous(Config, <<"client2">>),
12911291
ExpectedError = expected_connection_limit_error(Config),
12921292
unlink(C2),

0 commit comments

Comments
 (0)