aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/test/ssh_basic_SUITE.erl
diff options
context:
space:
mode:
authorHans <[email protected]>2015-06-05 13:13:46 +0200
committerHans <[email protected]>2015-06-05 13:13:46 +0200
commitc6434424833dbf9918f9c266a18f7d154a2edc5b (patch)
treef6275532dbb1da86837fd33514e60a291c5bb47e /lib/ssh/test/ssh_basic_SUITE.erl
parent5de5f9660245c5626bdbc7afc1528105d32a1d96 (diff)
downloadotp-c6434424833dbf9918f9c266a18f7d154a2edc5b.tar.gz
otp-c6434424833dbf9918f9c266a18f7d154a2edc5b.tar.bz2
otp-c6434424833dbf9918f9c266a18f7d154a2edc5b.zip
ssh: Change to ct:sleep in ssh_basic_SUITE
Diffstat (limited to 'lib/ssh/test/ssh_basic_SUITE.erl')
-rw-r--r--lib/ssh/test/ssh_basic_SUITE.erl11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/ssh/test/ssh_basic_SUITE.erl b/lib/ssh/test/ssh_basic_SUITE.erl
index a35e6e691a..a3186565da 100644
--- a/lib/ssh/test/ssh_basic_SUITE.erl
+++ b/lib/ssh/test/ssh_basic_SUITE.erl
@@ -1199,9 +1199,10 @@ ssh_connect_negtimeout(Config, Parallel) ->
{failfun, fun ssh_test_lib:failfun/2}]),
{ok,Socket} = gen_tcp:connect(Host, Port, []),
- Factor = 1.5,
+
+ Factor = 2,
ct:pal("And now sleeping ~p*NegTimeOut (~p ms)...", [Factor, round(Factor * NegTimeOut)]),
- receive after round(Factor * NegTimeOut) -> ok end,
+ ct:sleep(round(Factor * NegTimeOut)),
case inet:sockname(Socket) of
{ok,_} -> ct:fail("Socket not closed");
@@ -1245,10 +1246,10 @@ ssh_connect_nonegtimeout_connected(Config, Parallel) ->
one_shell_op(IO, NegTimeOut),
one_shell_op(IO, NegTimeOut),
- Factor = 1.5,
+ Factor = 2,
ct:pal("And now sleeping ~p*NegTimeOut (~p ms)...", [Factor, round(Factor * NegTimeOut)]),
- receive after round(Factor * NegTimeOut) -> ok end,
-
+ ct:sleep(round(Factor * NegTimeOut)),
+
one_shell_op(IO, NegTimeOut)
end,
exit(Shell, kill).