Skip to content

Commit 87ce067

Browse files
authored
Merge pull request #4351 from esl/move-dynamic-compile
Move dynamic_compile into big tests from the main project
2 parents 344108f + 7e57d9b commit 87ce067

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
File renamed without changes.

Diff for: big_tests/tests/acc_e2e_SUITE.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ suite() ->
6363
%%--------------------------------------------------------------------
6464

6565
init_per_suite(Config) ->
66-
{Mod, Code} = rpc(mim(), dynamic_compile, from_string, [acc_test_helper_code(Config)]),
66+
{Mod, Code} = dynamic_compile:from_string(acc_test_helper_code(Config)),
6767
rpc(mim(), code, load_binary, [Mod, "acc_test_helper.erl", Code]),
6868
recreate_table(),
6969
escalus:init_per_suite(Config).

Diff for: big_tests/tests/amp_big_SUITE.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ deliver_test_cases(drop) ->
115115

116116
init_per_suite(Config) ->
117117
ConfigWithHooks = [{ct_hooks, [{multiple_config_cth, fun tests_with_config/1}]} | Config],
118-
{Mod, Code} = rpc(mim(), dynamic_compile, from_string, [amp_test_helper_code()]),
118+
{Mod, Code} = dynamic_compile:from_string(amp_test_helper_code()),
119119
rpc(mim(), code, load_binary, [Mod, "amp_test_helper.erl", Code]),
120120
setup_meck(suite),
121121
escalus:init_per_suite(ConfigWithHooks).

Diff for: big_tests/tests/push_http_SUITE.erl

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ stop_pool() ->
178178
rpc(mongoose_wpool, stop, [http, <<"localhost">>, http_pool]).
179179

180180
setup_modules() ->
181-
{Mod, Code} = rpc(dynamic_compile, from_string, [custom_module_code()]),
181+
{Mod, Code} = dynamic_compile:from_string(custom_module_code()),
182182
rpc(code, load_binary, [Mod, "mod_event_pusher_http_custom.erl", Code]),
183-
{Mod2, Code2} = rpc(dynamic_compile, from_string, [custom_module_code_2()]),
183+
{Mod2, Code2} = dynamic_compile:from_string(custom_module_code_2()),
184184
rpc(code, load_binary, [Mod2, "mod_event_pusher_http_custom_2.erl", Code2]),
185185
ok.
186186

Diff for: big_tests/tests/tcp_listener_SUITE.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ end_per_suite(_Config) ->
4242
teardown_meck().
4343

4444
setup_meck() ->
45-
{Mod, Code} = rpc(mim(), dynamic_compile, from_string, [tcp_listener_helper_code()]),
45+
{Mod, Code} = dynamic_compile:from_string(tcp_listener_helper_code()),
4646
rpc(mim(), code, load_binary, [Mod, "tcp_listener_helper.erl", Code]),
4747
ok = rpc(mim(), meck, new, [mongoose_tcp_listener, [passthrough, no_link]]),
4848
ok = rpc(mim(), tcp_listener_helper, setup_meck, []).

0 commit comments

Comments
 (0)