aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2015-02-05 10:55:17 +0100
committerHans Nilsson <[email protected]>2015-02-05 10:55:17 +0100
commit6cdbe4b9a3bb89d02f4d4f5cd513615d19191b5d (patch)
treec63239c4c0a3eded367de3fa89c4c0aaad0d6d7f /lib/ssh/test
parent280399ccfc3c4bd0e9c87c22bfc13045aae2bb76 (diff)
parentba3bd714f1c09e8bd8db0253ac18021cfabee28f (diff)
downloadotp-6cdbe4b9a3bb89d02f4d4f5cd513615d19191b5d.tar.gz
otp-6cdbe4b9a3bb89d02f4d4f5cd513615d19191b5d.tar.bz2
otp-6cdbe4b9a3bb89d02f4d4f5cd513615d19191b5d.zip
Merge branch 'hans/ssh/error_timeout/OTP-12369' into maint
* hans/ssh/error_timeout/OTP-12369: Fix ssh:connect erroneus error msg at timeout
Diffstat (limited to 'lib/ssh/test')
-rw-r--r--lib/ssh/test/ssh_basic_SUITE.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ssh/test/ssh_basic_SUITE.erl b/lib/ssh/test/ssh_basic_SUITE.erl
index 415cb9fc9c..cb1b4ae945 100644
--- a/lib/ssh/test/ssh_basic_SUITE.erl
+++ b/lib/ssh/test/ssh_basic_SUITE.erl
@@ -723,7 +723,7 @@ ssh_connect_arg4_timeout(_Config) ->
%% Wait for client reaction on the connection try:
receive
- {done, Client, {error,_E}, T0} ->
+ {done, Client, {error,timeout}, T0} ->
Msp = ms_passed(T0, now()),
exit(Server,hasta_la_vista___baby),
Low = 0.9*Timeout,
@@ -733,6 +733,11 @@ ssh_connect_arg4_timeout(_Config) ->
Low<Msp, Msp<High -> ok;
true -> {fail, "timeout not within limits"}
end;
+
+ {done, Client, {error,Other}, _T0} ->
+ ct:log("Error message \"~p\" from the client is unexpected.",[{error,Other}]),
+ {fail, "Unexpected error message"};
+
{done, Client, {ok,_Ref}, _T0} ->
{fail,"ssh-connected ???"}
after