aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-03-28 16:58:31 +0200
committerBjörn Gustavsson <[email protected]>2016-03-30 14:29:54 +0200
commit272b962f3ddc62f7c67f3558e0f9cd503f920642 (patch)
treeae6565e10ddd67d5b5a6fcecd7bfed09ba201e9f /lib
parent02d9540ecacb42d4cc593b89eb7cf22fe6dedd42 (diff)
downloadotp-272b962f3ddc62f7c67f3558e0f9cd503f920642.tar.gz
otp-272b962f3ddc62f7c67f3558e0f9cd503f920642.tar.bz2
otp-272b962f3ddc62f7c67f3558e0f9cd503f920642.zip
gen_fsm_SUITE: Use timer:sleep/1 instead of ct:sleep/1
In 8d7d5627, test_server:sleep/1 was changed to ct:sleep/1. Change it to timer:sleep/1 to make the timing more exact (ct:sleep/1 will call another process).
Diffstat (limited to 'lib')
-rw-r--r--lib/stdlib/test/gen_fsm_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/test/gen_fsm_SUITE.erl b/lib/stdlib/test/gen_fsm_SUITE.erl
index f79a344c4e..d0f5c55826 100644
--- a/lib/stdlib/test/gen_fsm_SUITE.erl
+++ b/lib/stdlib/test/gen_fsm_SUITE.erl
@@ -971,7 +971,7 @@ init(stop) ->
init(stop_shutdown) ->
{stop, shutdown};
init(sleep) ->
- ct:sleep(1000),
+ timer:sleep(1000),
{ok, idle, data};
init({timeout, T}) ->
{ok, idle, state, T};
@@ -1004,7 +1004,7 @@ idle(_, Data) ->
idle({connect, _Pid}, _From, Data) ->
{reply, accept, wfor_conf, Data};
idle({delayed_answer, T}, _From, Data) ->
- ct:sleep(T),
+ timer:sleep(T),
{reply, delayed, idle, Data};
idle(badreturn, _From, _Data) ->
badreturn;