diff options
author | Björn Gustavsson <[email protected]> | 2016-02-28 08:18:09 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-03-09 13:19:54 +0100 |
commit | 8d7d5627919305a0b9bd4712dfe5238ad670d6fe (patch) | |
tree | a22d85ae878da1aae4d9334dd758eb1b925363e4 /lib/stdlib/test/gen_fsm_SUITE.erl | |
parent | d1fa4cb61880930ee19f81fbbfc59c8edb472a0f (diff) | |
download | otp-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/gen_fsm_SUITE.erl')
-rw-r--r-- | lib/stdlib/test/gen_fsm_SUITE.erl | 4 |
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 c097f3b645..67fc14e748 100644 --- a/lib/stdlib/test/gen_fsm_SUITE.erl +++ b/lib/stdlib/test/gen_fsm_SUITE.erl @@ -977,7 +977,7 @@ init(stop) -> init(stop_shutdown) -> {stop, shutdown}; init(sleep) -> - test_server:sleep(1000), + ct:sleep(1000), {ok, idle, data}; init({timeout, T}) -> {ok, idle, state, T}; @@ -1010,7 +1010,7 @@ idle(_, Data) -> idle({connect, _Pid}, _From, Data) -> {reply, accept, wfor_conf, Data}; idle({delayed_answer, T}, _From, Data) -> - test_server:sleep(T), + ct:sleep(T), {reply, delayed, idle, Data}; idle(badreturn, _From, _Data) -> badreturn; |