aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_basic_SUITE.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-03-07 12:01:35 +0100
committerHans Nilsson <[email protected]>2018-03-15 11:32:32 +0100
commitb134ee8b5424636efae783fa7b13a13f568fd9b9 (patch)
treef6f474f9e1ef7b5845957b0bfed744c15032b531 /lib/ssh/test/ssh_basic_SUITE.erl
parent98d8d18584cffd9bae18f1f9be997ab00fac081e (diff)
downloadotp-b134ee8b5424636efae783fa7b13a13f568fd9b9.tar.gz
otp-b134ee8b5424636efae783fa7b13a13f568fd9b9.tar.bz2
otp-b134ee8b5424636efae783fa7b13a13f568fd9b9.zip
ssh: Fix non-working test + add log in test suite
Diffstat (limited to 'lib/ssh/test/ssh_basic_SUITE.erl')
-rw-r--r--lib/ssh/test/ssh_basic_SUITE.erl11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/ssh/test/ssh_basic_SUITE.erl b/lib/ssh/test/ssh_basic_SUITE.erl
index 365f25fabb..4eef109713 100644
--- a/lib/ssh/test/ssh_basic_SUITE.erl
+++ b/lib/ssh/test/ssh_basic_SUITE.erl
@@ -1124,11 +1124,14 @@ packet_size(Config) ->
ct:log("Try max_packet_size=~p",[MaxPacketSize]),
{ok,Ch} = ssh_connection:session_channel(Conn, 1000, MaxPacketSize, 60000),
ok = ssh_connection:shell(Conn, Ch),
- rec(Server, Conn, Ch, MaxPacketSize)
+ rec(Server, Conn, Ch, MaxPacketSize),
+ ssh_connection:close(Conn, Ch)
end, [0, 1, 10, 25]),
ssh:close(Conn),
- ssh:stop_daemon(Server).
+ ssh:stop_daemon(Server),
+ ok.
+
rec(Server, Conn, Ch, MaxSz) ->
receive
@@ -1141,7 +1144,9 @@ rec(Server, Conn, Ch, MaxSz) ->
ssh:stop_daemon(Server),
ct:fail("Does not obey max_packet_size=~p",[MaxSz])
after
- 2000 -> ok
+ 2000 ->
+ ct:log("~p: ok!",[MaxSz]),
+ ok
end.
%%--------------------------------------------------------------------