diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-03-21 17:49:05 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-03-21 19:34:27 +0100 |
commit | ddda2ac2b524c7bf4ae6a357faac4f73c20ebca9 (patch) | |
tree | 77c9cf13f18727480c37bc27f9ea751dd4be1fbb /lib/erl_interface/test/ei_connect_SUITE.erl | |
parent | a94361075998359469c8f2130d2ba64f2d7fcb25 (diff) | |
download | otp-ddda2ac2b524c7bf4ae6a357faac4f73c20ebca9.tar.gz otp-ddda2ac2b524c7bf4ae6a357faac4f73c20ebca9.tar.bz2 otp-ddda2ac2b524c7bf4ae6a357faac4f73c20ebca9.zip |
Modernize timetraps
Diffstat (limited to 'lib/erl_interface/test/ei_connect_SUITE.erl')
-rw-r--r-- | lib/erl_interface/test/ei_connect_SUITE.erl | 37 |
1 files changed, 5 insertions, 32 deletions
diff --git a/lib/erl_interface/test/ei_connect_SUITE.erl b/lib/erl_interface/test/ei_connect_SUITE.erl index 59ffb8c9a5..c4b19c6523 100644 --- a/lib/erl_interface/test/ei_connect_SUITE.erl +++ b/lib/erl_interface/test/ei_connect_SUITE.erl @@ -24,11 +24,7 @@ -include_lib("common_test/include/ct.hrl"). -include("ei_connect_SUITE_data/ei_connect_test_cases.hrl"). --export([ - all/0, suite/0,groups/0,init_per_suite/1, end_per_suite/1, - init_per_group/2,end_per_group/2, - init_per_testcase/2, - end_per_testcase/2, +-export([all/0, suite/0, ei_send/1, ei_reg_send/1, ei_format_pid/1, @@ -36,41 +32,18 @@ rpc_test/1, ei_send_funs/1, ei_threaded_send/1, - ei_set_get_tracelevel/1 - ]). + ei_set_get_tracelevel/1]). -import(runner, [get_term/1,send_term/2]). -suite() -> [{ct_hooks,[ts_install_cth]}]. +suite() -> + [{ct_hooks,[ts_install_cth]}, + {timetrap, {seconds, 30}}]. all() -> [ei_send, ei_reg_send, ei_rpc, ei_format_pid, ei_send_funs, ei_threaded_send, ei_set_get_tracelevel]. -groups() -> - []. - -init_per_suite(Config) -> - Config. - -end_per_suite(_Config) -> - ok. - -init_per_group(_GroupName, Config) -> - Config. - -end_per_group(_GroupName, Config) -> - Config. - -init_per_testcase(_Case, Config) -> - Dog = ?t:timetrap(?t:minutes(0.25)), - [{watchdog, Dog}|Config]. - -end_per_testcase(_Case, Config) -> - Dog = ?config(watchdog, Config), - test_server:timetrap_cancel(Dog), - ok. - ei_send(Config) when is_list(Config) -> P = runner:start(?interpret), 0 = ei_connect_init(P, 42, erlang:get_cookie(), 0), |