diff options
author | Peter Andersson <[email protected]> | 2015-03-18 11:10:42 +0100 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2015-03-18 11:10:42 +0100 |
commit | abcf91943c4d0d29c312786d9f531e531c6965a6 (patch) | |
tree | 510f58e414d18b93d704abc90176a7ff3643b58d /lib/common_test/test/telnet_server.erl | |
parent | ae42a30d17367c0c52a057230c18179dcda539bb (diff) | |
parent | cbea3156f051f92ebd355ea05c7904aa080fd72f (diff) | |
download | otp-abcf91943c4d0d29c312786d9f531e531c6965a6.tar.gz otp-abcf91943c4d0d29c312786d9f531e531c6965a6.tar.bz2 otp-abcf91943c4d0d29c312786d9f531e531c6965a6.zip |
Merge remote-tracking branch 'origin/peppe/common_test/enable_time_scaling' into maint
* origin/peppe/common_test/enable_time_scaling:
Enable timetrap scaling for all tests
Diffstat (limited to 'lib/common_test/test/telnet_server.erl')
-rw-r--r-- | lib/common_test/test/telnet_server.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/common_test/test/telnet_server.erl b/lib/common_test/test/telnet_server.erl index d25ee62d38..11959c3e12 100644 --- a/lib/common_test/test/telnet_server.erl +++ b/lib/common_test/test/telnet_server.erl @@ -59,7 +59,7 @@ init(Opts) -> accept(State), ok = gen_tcp:close(LSock), dbg("telnet_server closed the listen socket ~p\n", [LSock]), - timer:sleep(1000), + ct:sleep(1000), ok. listen(0, _Port, _Opts) -> @@ -68,7 +68,7 @@ listen(Retries, Port, Opts) -> case gen_tcp:listen(Port, Opts) of {error,eaddrinuse} -> dbg("Listen port not released, trying again..."), - timer:sleep(5000), + ct:sleep(5000), listen(Retries-1, Port, Opts); Ok = {ok,_LSock} -> Ok; @@ -220,7 +220,7 @@ do_handle_data("echo_sep " ++ Data,State) -> Msgs = string:tokens(Data," "), lists:foreach(fun(Msg) -> send(Msg,State), - timer:sleep(10) + ct:sleep(10) end, Msgs), send("\r\n> ",State), {ok,State}; @@ -292,7 +292,7 @@ send_loop(T0,T,Data,State) -> ok; true -> send(Data,State), - timer:sleep(500), + ct:sleep(500), send_loop(T0,T,Data,State) end. |