aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/gen_statem_SUITE.erl
diff options
context:
space:
mode:
authorAnton N Ryabkov <[email protected]>2017-04-24 13:41:59 +0700
committerAnton N Ryabkov <[email protected]>2017-05-02 08:34:17 +0700
commit38294da512781e44b44b9331bf613003397d529b (patch)
treeb4b927dea780ad6f1542372c05d106b64ad1afb8 /lib/stdlib/test/gen_statem_SUITE.erl
parent063bebc88358f66cea17e3cf777b8b561a5f14c0 (diff)
downloadotp-38294da512781e44b44b9331bf613003397d529b.tar.gz
otp-38294da512781e44b44b9331bf613003397d529b.tar.bz2
otp-38294da512781e44b44b9331bf613003397d529b.zip
"auto_hibernate_timeout" option renamed to "hibernate_after".
It was done because "hibernate_after" option already used in ssl for the same reason.
Diffstat (limited to 'lib/stdlib/test/gen_statem_SUITE.erl')
-rw-r--r--lib/stdlib/test/gen_statem_SUITE.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/stdlib/test/gen_statem_SUITE.erl b/lib/stdlib/test/gen_statem_SUITE.erl
index f05fc19555..33441c75e0 100644
--- a/lib/stdlib/test/gen_statem_SUITE.erl
+++ b/lib/stdlib/test/gen_statem_SUITE.erl
@@ -1287,14 +1287,14 @@ hibernate(Config) ->
%% Auto-hibernation timeout
auto_hibernate(Config) ->
OldFl = process_flag(trap_exit, true),
- AutoHibernateTimeout = 100,
+ HibernateAfterTimeout = 100,
{ok,Pid} =
gen_statem:start_link(
- ?MODULE, start_arg(Config, []), [{auto_hibernate_timeout, AutoHibernateTimeout}]),
+ ?MODULE, start_arg(Config, []), [{hibernate_after, HibernateAfterTimeout}]),
%% After init test
is_not_in_erlang_hibernate(Pid),
- timer:sleep(AutoHibernateTimeout),
+ timer:sleep(HibernateAfterTimeout),
is_in_erlang_hibernate(Pid),
%% After info test
Pid ! {hping, self()},
@@ -1305,7 +1305,7 @@ auto_hibernate(Config) ->
ct:fail(info)
end,
is_not_in_erlang_hibernate(Pid),
- timer:sleep(AutoHibernateTimeout),
+ timer:sleep(HibernateAfterTimeout),
is_in_erlang_hibernate(Pid),
%% After cast test
ok = gen_statem:cast(Pid, {hping, self()}),
@@ -1316,12 +1316,12 @@ auto_hibernate(Config) ->
ct:fail(cast)
end,
is_not_in_erlang_hibernate(Pid),
- timer:sleep(AutoHibernateTimeout),
+ timer:sleep(HibernateAfterTimeout),
is_in_erlang_hibernate(Pid),
%% After call test
hpong = gen_statem:call(Pid, hping),
is_not_in_erlang_hibernate(Pid),
- timer:sleep(AutoHibernateTimeout),
+ timer:sleep(HibernateAfterTimeout),
is_in_erlang_hibernate(Pid),
stop_it(Pid),