diff options
| author | Michael Klishin <michael@clojurewerkz.org> | 2020-08-31 02:34:52 +0300 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2020-08-31 02:34:52 +0300 |
| commit | 5abc642d365c21bf3be25a2de63817a8fbcb6f8a (patch) | |
| tree | 4a6688b95de087504e2eba8ce434fc67693bbce4 /test | |
| parent | 37c4f896821d4474638bf0647869c2bc20569588 (diff) | |
| download | rabbitmq-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.erl | 7 |
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) -> |
