diff options
| author | Michael Klishin <michael@clojurewerkz.org> | 2020-08-31 02:34:52 +0300 |
|---|---|---|
| committer | Michael Klishin <michael@clojurewerkz.org> | 2020-09-02 04:30:08 +0300 |
| commit | 6806933d33c96bdc74dc957048723bf4ee67f88a (patch) | |
| tree | 6441e93f23c0eb1490c66ab6d428ef8373b3a5dc | |
| parent | e8bc02d1a9b1af3df80598ebc691e958452a70cc (diff) | |
| download | rabbitmq-server-git-6806933d33c96bdc74dc957048723bf4ee67f88a.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.
| -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) -> |
