diff options
author | Maxim Fedorov <maximfca@gmail.com> | 2021-07-02 10:10:35 -0700 |
---|---|---|
committer | Maxim Fedorov <dane@whatsapp.com> | 2021-09-08 17:59:57 -0700 |
commit | 525fdc48c0290293a473c21066a4efb9aa96e1bf (patch) | |
tree | c3fdcc5499fb525ea554648d234d114f5013b1f1 /lib/snmp/test | |
parent | 5e730312b3e2e44aeb15e3d92b6210390fb46066 (diff) | |
download | erlang-525fdc48c0290293a473c21066a4efb9aa96e1bf.tar.gz |
test suites: replace ?t: with test_server:
Removing ?t retained for backward compatibility allows to
search for test_server callsites easier.
Replace ?t:fail and test_server:fail with ct:fail.
Diffstat (limited to 'lib/snmp/test')
-rw-r--r-- | lib/snmp/test/exp/snmp_agent_bl_test.erl | 4 | ||||
-rw-r--r-- | lib/snmp/test/exp/snmp_agent_ms_test.erl | 4 | ||||
-rw-r--r-- | lib/snmp/test/exp/snmp_agent_mt_test.erl | 4 | ||||
-rw-r--r-- | lib/snmp/test/exp/snmp_agent_v1_test.erl | 4 | ||||
-rw-r--r-- | lib/snmp/test/exp/snmp_agent_v2_test.erl | 4 | ||||
-rw-r--r-- | lib/snmp/test/exp/snmp_agent_v3_test.erl | 4 | ||||
-rw-r--r-- | lib/snmp/test/snmp_appup_test.erl | 2 |
7 files changed, 13 insertions, 13 deletions
diff --git a/lib/snmp/test/exp/snmp_agent_bl_test.erl b/lib/snmp/test/exp/snmp_agent_bl_test.erl index af53f816f4..42b485978d 100644 --- a/lib/snmp/test/exp/snmp_agent_bl_test.erl +++ b/lib/snmp/test/exp/snmp_agent_bl_test.erl @@ -87,12 +87,12 @@ all(suite) -> {req, [{conf, init_all, cases(), finish_all}]}. init_per_testcase(_Case, Config) when list(Config) -> - Dog = ?t:timetrap(?t:minutes(6)), + Dog = test_server:timetrap(test_server:minutes(6)), [{watchdog, Dog}|Config]. end_per_testcase(_Case, Config) when list(Config) -> Dog = ?config(watchdog, Config), - ?t:timetrap_cancel(Dog), + test_server:timetrap_cancel(Dog), Config. cases() -> diff --git a/lib/snmp/test/exp/snmp_agent_ms_test.erl b/lib/snmp/test/exp/snmp_agent_ms_test.erl index e615e224dc..2cd77a91dc 100644 --- a/lib/snmp/test/exp/snmp_agent_ms_test.erl +++ b/lib/snmp/test/exp/snmp_agent_ms_test.erl @@ -223,12 +223,12 @@ end_per_group(_GroupName, Config) -> init_per_testcase(_Case, Config) when list(Config) -> - Dog = ?t:timetrap(?t:minutes(6)), + Dog = test_server:timetrap(test_server:minutes(6)), [{watchdog, Dog}|Config]. end_per_testcase(_Case, Config) when list(Config) -> Dog = ?config(watchdog, Config), - ?t:timetrap_cancel(Dog), + test_server:timetrap_cancel(Dog), Config. cases() -> diff --git a/lib/snmp/test/exp/snmp_agent_mt_test.erl b/lib/snmp/test/exp/snmp_agent_mt_test.erl index a9e68011ea..3fddf5dccb 100644 --- a/lib/snmp/test/exp/snmp_agent_mt_test.erl +++ b/lib/snmp/test/exp/snmp_agent_mt_test.erl @@ -223,12 +223,12 @@ end_per_group(_GroupName, Config) -> init_per_testcase(_Case, Config) when list(Config) -> - Dog = ?t:timetrap(?t:minutes(6)), + Dog = test_server:timetrap(test_server:minutes(6)), [{watchdog, Dog}|Config]. end_per_testcase(_Case, Config) when list(Config) -> Dog = ?config(watchdog, Config), - ?t:timetrap_cancel(Dog), + test_server:timetrap_cancel(Dog), Config. cases() -> diff --git a/lib/snmp/test/exp/snmp_agent_v1_test.erl b/lib/snmp/test/exp/snmp_agent_v1_test.erl index 98e29e55f7..72496176ae 100644 --- a/lib/snmp/test/exp/snmp_agent_v1_test.erl +++ b/lib/snmp/test/exp/snmp_agent_v1_test.erl @@ -101,12 +101,12 @@ all(suite) -> {req, [{conf, init, cases(), finish}]}. init_per_testcase(_Case, Config) when list(Config) -> - Dog = ?t:timetrap(?t:minutes(6)), + Dog = test_server:timetrap(test_server:minutes(6)), [{watchdog, Dog}|Config]. end_per_testcase(_Case, Config) when list(Config) -> Dog = ?config(watchdog, Config), - ?t:timetrap_cancel(Dog), + test_server:timetrap_cancel(Dog), Config. cases() -> diff --git a/lib/snmp/test/exp/snmp_agent_v2_test.erl b/lib/snmp/test/exp/snmp_agent_v2_test.erl index c69904daf5..0704ff50d4 100644 --- a/lib/snmp/test/exp/snmp_agent_v2_test.erl +++ b/lib/snmp/test/exp/snmp_agent_v2_test.erl @@ -223,12 +223,12 @@ end_per_group(_GroupName, Config) -> init_per_testcase(_Case, Config) when list(Config) -> - Dog = ?t:timetrap(?t:minutes(6)), + Dog = test_server:timetrap(test_server:minutes(6)), [{watchdog, Dog}|Config]. end_per_testcase(_Case, Config) when list(Config) -> Dog = ?config(watchdog, Config), - ?t:timetrap_cancel(Dog), + test_server:timetrap_cancel(Dog), Config. cases() -> diff --git a/lib/snmp/test/exp/snmp_agent_v3_test.erl b/lib/snmp/test/exp/snmp_agent_v3_test.erl index 066a5a26fc..81c6ea421f 100644 --- a/lib/snmp/test/exp/snmp_agent_v3_test.erl +++ b/lib/snmp/test/exp/snmp_agent_v3_test.erl @@ -223,12 +223,12 @@ end_per_group(_GroupName, Config) -> init_per_testcase(_Case, Config) when list(Config) -> - Dog = ?t:timetrap(?t:minutes(6)), + Dog = test_server:timetrap(test_server:minutes(6)), [{watchdog, Dog}|Config]. end_per_testcase(_Case, Config) when list(Config) -> Dog = ?config(watchdog, Config), - ?t:timetrap_cancel(Dog), + test_server:timetrap_cancel(Dog), Config. cases() -> diff --git a/lib/snmp/test/snmp_appup_test.erl b/lib/snmp/test/snmp_appup_test.erl index aff1c7c782..2e98b1a70f 100644 --- a/lib/snmp/test/snmp_appup_test.erl +++ b/lib/snmp/test/snmp_appup_test.erl @@ -87,4 +87,4 @@ end_per_testcase(_Case, Config) when is_list(Config) -> %% Perform a simple check of the appup file appup_file(Config) when is_list(Config) -> - ok = ?t:appup_test(snmp). + ok = test_server:appup_test(snmp). |