From c6434424833dbf9918f9c266a18f7d154a2edc5b Mon Sep 17 00:00:00 2001 From: Hans Date: Fri, 5 Jun 2015 13:13:46 +0200 Subject: ssh: Change to ct:sleep in ssh_basic_SUITE --- lib/ssh/test/ssh_basic_SUITE.erl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/ssh/test/ssh_basic_SUITE.erl') 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). -- cgit v1.2.3