aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_options_SUITE.erl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-10-31 11:46:09 +0100
committerHans Nilsson <[email protected]>2016-10-31 11:46:09 +0100
commita5d638e4aa772f44f8ca071e1f7cf625ccc34c01 (patch)
treea909f24685c717f9647de641ef63fb72d625bd98 /lib/ssh/test/ssh_options_SUITE.erl
parent59ecab4221fd2b8938c2a3a65f82159626d6a273 (diff)
downloadotp-a5d638e4aa772f44f8ca071e1f7cf625ccc34c01.tar.gz
otp-a5d638e4aa772f44f8ca071e1f7cf625ccc34c01.tar.bz2
otp-a5d638e4aa772f44f8ca071e1f7cf625ccc34c01.zip
ssh: retry in ssh_options_SUITE:ssh_connect_negtimeout_*
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.