aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/proc_lib_SUITE.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-02-28 08:18:09 +0100
committerBjörn Gustavsson <[email protected]>2016-03-09 13:19:54 +0100
commit8d7d5627919305a0b9bd4712dfe5238ad670d6fe (patch)
treea22d85ae878da1aae4d9334dd758eb1b925363e4 /lib/stdlib/test/proc_lib_SUITE.erl
parentd1fa4cb61880930ee19f81fbbfc59c8edb472a0f (diff)
downloadotp-8d7d5627919305a0b9bd4712dfe5238ad670d6fe.tar.gz
otp-8d7d5627919305a0b9bd4712dfe5238ad670d6fe.tar.bz2
otp-8d7d5627919305a0b9bd4712dfe5238ad670d6fe.zip
Replace calls to test_server:sleep/1 with ct:sleep/1 or timer:sleep/1
Note that the sleeping time in ct:sleep/1 will be scaled if the test is run with (for example) cover. When it is important that the sleep time is not adjusted, use timer:sleep/1.
Diffstat (limited to 'lib/stdlib/test/proc_lib_SUITE.erl')
-rw-r--r--lib/stdlib/test/proc_lib_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/test/proc_lib_SUITE.erl b/lib/stdlib/test/proc_lib_SUITE.erl
index ad0c06794a..f877313069 100644
--- a/lib/stdlib/test/proc_lib_SUITE.erl
+++ b/lib/stdlib/test/proc_lib_SUITE.erl
@@ -115,7 +115,7 @@ crash(Config) when is_list(Config) ->
%% Spawn function with neighbour.
Pid4 = proc_lib:spawn(?MODULE, sp2, []),
- test_server:sleep(100),
+ ct:sleep(100),
{?MODULE,sp2,[]} = proc_lib:initial_call(Pid4),
{?MODULE,sp2,0} = proc_lib:translate_initial_call(Pid4),
Pid4 ! die,
@@ -241,7 +241,7 @@ spawn_opt(Config) when is_list(Config) ->
FunMFArity = {?MODULE,Fname,0},
?line Pid1 = proc_lib:spawn_opt(node(), F, [{priority,low}]),
?line Pid = proc_lib:spawn_opt(F, [{priority,low}]),
- ?line test_server:sleep(100),
+ ct:sleep(100),
?line FunMFArgs = proc_lib:initial_call(Pid),
?line FunMFArity = proc_lib:translate_initial_call(Pid),
?line Pid ! die,