summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilip Kuryloski <pkuryloski@pivotal.io>2020-04-28 10:55:22 +0200
committerPhilip Kuryloski <pkuryloski@pivotal.io>2020-04-28 14:49:21 +0200
commitdc6e96543bd2f5c92396e09bf1df99d3c29fc63a (patch)
treee8d3ba0b451eb1e4891240a19ec3fde8db804188 /test
parent60c78ba43ca0f0291f662f8e4daaf56bf37ef0c5 (diff)
downloadrabbitmq-server-git-dc6e96543bd2f5c92396e09bf1df99d3c29fc63a.tar.gz
Express connection count assertion more generally
So that more information is available in the logs upon test failure https://3.basecamp.com/4467044/buckets/16481075/todos/2619089282
Diffstat (limited to 'test')
-rw-r--r--test/per_vhost_connection_limit_partitions_SUITE.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/per_vhost_connection_limit_partitions_SUITE.erl b/test/per_vhost_connection_limit_partitions_SUITE.erl
index 7ec4cc92e4..91acbe8fd8 100644
--- a/test/per_vhost_connection_limit_partitions_SUITE.erl
+++ b/test/per_vhost_connection_limit_partitions_SUITE.erl
@@ -132,10 +132,11 @@ cluster_full_partition_with_autoheal(Config) ->
%% -------------------------------------------------------------------
wait_for_count_connections_in(Config, VHost, Expected, Time) when Time =< 0 ->
- ?assertEqual(Expected, count_connections_in(Config, VHost));
+ ?assertMatch(Connections when length(Connections) == Expected,
+ connections_in(Config, VHost));
wait_for_count_connections_in(Config, VHost, Expected, Time) ->
- case count_connections_in(Config, VHost) of
- Expected ->
+ case connections_in(Config, VHost) of
+ Connections when length(Connections) == Expected ->
ok;
_ ->
Sleep = 3000,