aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_connection_SUITE.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-02-22 17:00:30 +0100
committerHans Nilsson <[email protected]>2018-02-28 17:08:41 +0100
commitb9d8918e6dade84e77c01ceab0e12e9c55266cf3 (patch)
treeb51516c11e0d9b8a1e65122b3a4b7e1b2d7f634a /lib/ssh/test/ssh_connection_SUITE.erl
parent4f88d07a757d4deef6c8a40db11f962e74d3a8c5 (diff)
downloadotp-b9d8918e6dade84e77c01ceab0e12e9c55266cf3.tar.gz
otp-b9d8918e6dade84e77c01ceab0e12e9c55266cf3.tar.bz2
otp-b9d8918e6dade84e77c01ceab0e12e9c55266cf3.zip
ssh: Insert missing ssh:stop() etc in test suites
Diffstat (limited to 'lib/ssh/test/ssh_connection_SUITE.erl')
-rw-r--r--lib/ssh/test/ssh_connection_SUITE.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ssh/test/ssh_connection_SUITE.erl b/lib/ssh/test/ssh_connection_SUITE.erl
index ba4518cfe6..77c299b3ee 100644
--- a/lib/ssh/test/ssh_connection_SUITE.erl
+++ b/lib/ssh/test/ssh_connection_SUITE.erl
@@ -85,6 +85,7 @@ init_per_suite(Config) ->
?CHECK_CRYPTO(Config).
end_per_suite(Config) ->
+ catch ssh:stop(),
Config.
%%--------------------------------------------------------------------
@@ -800,6 +801,8 @@ stop_listener(Config) when is_list(Config) ->
ssh:stop_daemon(Pid0),
ssh:stop_daemon(Pid1);
Error ->
+ ssh:close(ConnectionRef0),
+ ssh:stop_daemon(Pid0),
ct:fail({unexpected, Error})
end.