diff options
author | Peter Andersson <[email protected]> | 2015-03-17 13:34:30 +0100 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2015-03-18 10:03:13 +0100 |
commit | cbea3156f051f92ebd355ea05c7904aa080fd72f (patch) | |
tree | f4f7b35a5f44fe274061e90d14254b7e40e03cf3 /lib/common_test/test/telnet_server.erl | |
parent | 5fde23474656c1934250e8b8a9c7399dc00d5bdf (diff) | |
download | otp-cbea3156f051f92ebd355ea05c7904aa080fd72f.tar.gz otp-cbea3156f051f92ebd355ea05c7904aa080fd72f.tar.bz2 otp-cbea3156f051f92ebd355ea05c7904aa080fd72f.zip |
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. |