aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-08-04 15:53:48 +0200
committerHans Nilsson <[email protected]>2016-08-04 16:07:50 +0200
commitd732b4b8abfe59d1ac5ec475633ca08501341a49 (patch)
tree3a4f5b6435389289d8de5d0f80763245c76766ef
parent63b3d3a4d5afbf73f215cd343b9a84591d520d72 (diff)
downloadotp-d732b4b8abfe59d1ac5ec475633ca08501341a49.tar.gz
otp-d732b4b8abfe59d1ac5ec475633ca08501341a49.tar.bz2
otp-d732b4b8abfe59d1ac5ec475633ca08501341a49.zip
ssh: update test suite for supervisors
-rw-r--r--lib/ssh/test/ssh_sup_SUITE.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ssh/test/ssh_sup_SUITE.erl b/lib/ssh/test/ssh_sup_SUITE.erl
index 18e91a9af3..98441e0046 100644
--- a/lib/ssh/test/ssh_sup_SUITE.erl
+++ b/lib/ssh/test/ssh_sup_SUITE.erl
@@ -105,16 +105,16 @@ sshc_subtree(Config) when is_list(Config) ->
{ok, Pid1} = ssh:connect(Host, Port, [{silently_accept_hosts, true},
{user_interaction, false},
{user, ?USER}, {password, ?PASSWD},{user_dir, UserDir}]),
- [{_, _,supervisor,[ssh_connection_handler]}] =
+ [{_, _,worker,[ssh_connection_handler]}] =
supervisor:which_children(sshc_sup),
{ok, Pid2} = ssh:connect(Host, Port, [{silently_accept_hosts, true},
{user_interaction, false},
{user, ?USER}, {password, ?PASSWD}, {user_dir, UserDir}]),
- [{_,_,supervisor,[ssh_connection_handler]},
- {_,_,supervisor,[ssh_connection_handler]}] =
+ [{_,_,worker,[ssh_connection_handler]},
+ {_,_,worker,[ssh_connection_handler]}] =
supervisor:which_children(sshc_sup),
ssh:close(Pid1),
- [{_,_,supervisor,[ssh_connection_handler]}] =
+ [{_,_,worker,[ssh_connection_handler]}] =
supervisor:which_children(sshc_sup),
ssh:close(Pid2),
ct:sleep(?WAIT_FOR_SHUTDOWN),