aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/gen_event_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/gen_event_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/gen_event_SUITE.erl')
-rw-r--r--lib/stdlib/test/gen_event_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/test/gen_event_SUITE.erl b/lib/stdlib/test/gen_event_SUITE.erl
index 6386619904..ac22a46d21 100644
--- a/lib/stdlib/test/gen_event_SUITE.erl
+++ b/lib/stdlib/test/gen_event_SUITE.erl
@@ -264,7 +264,7 @@ add_sup_handler(Config) when is_list(Config) ->
?line ok = gen_event:add_sup_handler(my_dummy_handler, dummy_h, [self()]),
?line [dummy_h] = gen_event:which_handlers(my_dummy_handler),
?line exit(Pid, sup_died),
- ?t:sleep(1000),
+ ct:sleep(1000),
?line [] = gen_event:which_handlers(my_dummy_handler),
?line ok = gen_event:add_sup_handler(my_dummy_handler, dummy_h, [self()]),