aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_options_SUITE.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-11-01 11:54:24 +0100
committerHans Nilsson <[email protected]>2016-11-01 11:54:24 +0100
commit6ecfa5c23518335ed8c129d57666f1265b1b7d20 (patch)
treee8aa8630060f92e73b970027f72b5720d7234379 /lib/ssh/test/ssh_options_SUITE.erl
parent18dad110a0e9220cf1a18ff1cd78d66d6ce203b5 (diff)
parenta5d638e4aa772f44f8ca071e1f7cf625ccc34c01 (diff)
downloadotp-6ecfa5c23518335ed8c129d57666f1265b1b7d20.tar.gz
otp-6ecfa5c23518335ed8c129d57666f1265b1b7d20.tar.bz2
otp-6ecfa5c23518335ed8c129d57666f1265b1b7d20.zip
Merge branch 'hans/ssh/cuddle_tests_maint' into maint
Diffstat (limited to 'lib/ssh/test/ssh_options_SUITE.erl')
-rw-r--r--lib/ssh/test/ssh_options_SUITE.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/ssh/test/ssh_options_SUITE.erl b/lib/ssh/test/ssh_options_SUITE.erl
index 60eae5a850..4cc12cbcbe 100644
--- a/lib/ssh/test/ssh_options_SUITE.erl
+++ b/lib/ssh/test/ssh_options_SUITE.erl
@@ -982,7 +982,14 @@ ssh_connect_negtimeout(Config, Parallel) ->
ct:sleep(round(Factor * NegTimeOut)),
case inet:sockname(Socket) of
- {ok,_} -> ct:fail("Socket not closed");
+ {ok,_} ->
+ %% Give it another chance...
+ ct:log("Sleep more...",[]),
+ ct:sleep(round(Factor * NegTimeOut)),
+ case inet:sockname(Socket) of
+ {ok,_} -> ct:fail("Socket not closed");
+ {error,_} -> ok
+ end;
{error,_} -> ok
end.