summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2020-08-31 02:34:52 +0300
committerMichael Klishin <michael@clojurewerkz.org>2020-08-31 02:34:52 +0300
commit5abc642d365c21bf3be25a2de63817a8fbcb6f8a (patch)
tree4a6688b95de087504e2eba8ce434fc67693bbce4 /test
parent37c4f896821d4474638bf0647869c2bc20569588 (diff)
downloadrabbitmq-server-git-5abc642d365c21bf3be25a2de63817a8fbcb6f8a.tar.gz
Cleanly close connections in this test
Killing a local connection process makes the test flaky. For the purpose of this suite, a clean close is good enough.
Diffstat (limited to 'test')
-rw-r--r--test/per_user_connection_channel_limit_SUITE.erl7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/per_user_connection_channel_limit_SUITE.erl b/test/per_user_connection_channel_limit_SUITE.erl
index 13243ab486..f90fa59d4f 100644
--- a/test/per_user_connection_channel_limit_SUITE.erl
+++ b/test/per_user_connection_channel_limit_SUITE.erl
@@ -312,7 +312,7 @@ single_node_multiple_users_connection_and_channel_count(Config) ->
count_channels_of_user(Config, Username1) =:= 10
end),
- abruptly_terminate_client_connections([Conn4]),
+ close_connections([Conn4]),
rabbit_ct_helpers:await_condition(
fun () ->
count_connections_of_user(Config, Username1) =:= 1 andalso
@@ -1408,9 +1408,8 @@ close_connections(Conns) ->
end, Conns).
abruptly_terminate_client_connections(Conns) ->
- lists:foreach(fun
- (Conn) ->
- (catch exit(Conn, please_terminate))
+ lists:foreach(fun (Conn) ->
+ (catch exit(Conn, please_terminate))
end, Conns).
open_channels(Conn, N) ->