summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-09-02 15:20:44 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2020-09-02 15:22:09 +0200
commit693be55f88e4cb603a002f08daf6710ed6f3fdf5 (patch)
tree21ee8607cbbe74ece0075b83852449b98ab3f318 /test
parent5425fbbabee6a8bd5c0ac162ba47f1f5da96e948 (diff)
downloadrabbitmq-server-git-693be55f88e4cb603a002f08daf6710ed6f3fdf5.tar.gz
per_vhost_connection_limit_SUITE: Use rabbit_connection_tracking:clear_tracked_connection_tables_for_this_node/0
... instead of rabbit_connection_tracking:clear_all_connection_tracking_tables/0. They latter calls the former and the former exists in all release branches. This fixes the undef exception when running the testsuite with mixed-versions clusters. While here use rabbit_ct_broker_helpers:rpc_all() instead of having a loop to call rabbit_ct_broker_helpers:rpc().
Diffstat (limited to 'test')
-rw-r--r--test/per_vhost_connection_limit_SUITE.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/per_vhost_connection_limit_SUITE.erl b/test/per_vhost_connection_limit_SUITE.erl
index ef9e5c4554..a140b3e829 100644
--- a/test/per_vhost_connection_limit_SUITE.erl
+++ b/test/per_vhost_connection_limit_SUITE.erl
@@ -134,11 +134,11 @@ end_per_testcase(Testcase, Config) ->
rabbit_ct_helpers:testcase_finished(Config, Testcase).
clear_all_connection_tracking_tables(Config) ->
- [rabbit_ct_broker_helpers:rpc(Config,
- N,
- rabbit_connection_tracking,
- clear_tracking_tables,
- []) || N <- rabbit_ct_broker_helpers:get_node_configs(Config, nodename)].
+ rabbit_ct_broker_helpers:rpc_all(
+ Config,
+ rabbit_connection_tracking,
+ clear_tracked_connection_tables_for_this_node,
+ []).
%% -------------------------------------------------------------------
%% Test cases.