diff options
| author | Philip Kuryloski <pkuryloski@pivotal.io> | 2020-09-03 10:59:13 +0200 |
|---|---|---|
| committer | Philip Kuryloski <kuryloskip@vmware.com> | 2020-09-03 16:22:04 +0200 |
| commit | 931f7d4fbca334b5da99ec2cc45121c8a2917dde (patch) | |
| tree | 8aafe82b60c9839f99c3de4cc537813c9ddaaf88 | |
| parent | e4e5a0672a51cf3dbf40a6d3ccfc98c430f76e6b (diff) | |
| download | rabbitmq-server-git-931f7d4fbca334b5da99ec2cc45121c8a2917dde.tar.gz | |
Adjustments for test flakes
| -rw-r--r-- | test/per_user_connection_channel_limit_SUITE.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/per_user_connection_channel_limit_SUITE.erl b/test/per_user_connection_channel_limit_SUITE.erl index 35745d65f8..4888a65efa 100644 --- a/test/per_user_connection_channel_limit_SUITE.erl +++ b/test/per_user_connection_channel_limit_SUITE.erl @@ -10,6 +10,7 @@ -include_lib("common_test/include/ct.hrl"). -include_lib("amqp_client/include/amqp_client.hrl"). -include_lib("eunit/include/eunit.hrl"). +-include_lib("rabbitmq_ct_helpers/include/rabbit_assert.hrl"). -compile(export_all). @@ -891,7 +892,7 @@ single_node_single_user_clear_limits(Config) -> end), close_connections([Conn2, Conn3, Conn4, Conn5, Conn6, Conn7]), - ?assertEqual(0, count_connections_of_user(Config, Username)), + ?awaitMatch(0, count_connections_of_user(Config, Username), 5000), set_user_connection_and_channel_limit(Config, Username, -1, -1). @@ -1199,7 +1200,7 @@ cluster_single_user_limit2(Config) -> end), close_connections([Conn2, Conn3, Conn4, Conn5, Conn6]), - ?assertEqual(0, count_connections_of_user(Config, Username)), + ?awaitMatch(0, count_connections_of_user(Config, Username), 5000), set_user_connection_and_channel_limit(Config, Username, -1, -1). |
