diff --git a/src/dynamic_compile.erl b/big_tests/src/dynamic_compile.erl similarity index 100% rename from src/dynamic_compile.erl rename to big_tests/src/dynamic_compile.erl diff --git a/big_tests/tests/acc_e2e_SUITE.erl b/big_tests/tests/acc_e2e_SUITE.erl index 208627ac534..5a69df33339 100644 --- a/big_tests/tests/acc_e2e_SUITE.erl +++ b/big_tests/tests/acc_e2e_SUITE.erl @@ -63,7 +63,7 @@ suite() -> %%-------------------------------------------------------------------- init_per_suite(Config) -> - {Mod, Code} = rpc(mim(), dynamic_compile, from_string, [acc_test_helper_code(Config)]), + {Mod, Code} = dynamic_compile:from_string(acc_test_helper_code(Config)), rpc(mim(), code, load_binary, [Mod, "acc_test_helper.erl", Code]), recreate_table(), escalus:init_per_suite(Config). diff --git a/big_tests/tests/amp_big_SUITE.erl b/big_tests/tests/amp_big_SUITE.erl index c312836173f..66607db38eb 100644 --- a/big_tests/tests/amp_big_SUITE.erl +++ b/big_tests/tests/amp_big_SUITE.erl @@ -115,7 +115,7 @@ deliver_test_cases(drop) -> init_per_suite(Config) -> ConfigWithHooks = [{ct_hooks, [{multiple_config_cth, fun tests_with_config/1}]} | Config], - {Mod, Code} = rpc(mim(), dynamic_compile, from_string, [amp_test_helper_code()]), + {Mod, Code} = dynamic_compile:from_string(amp_test_helper_code()), rpc(mim(), code, load_binary, [Mod, "amp_test_helper.erl", Code]), setup_meck(suite), escalus:init_per_suite(ConfigWithHooks). diff --git a/big_tests/tests/push_http_SUITE.erl b/big_tests/tests/push_http_SUITE.erl index b986c667a35..cbcb0127a57 100644 --- a/big_tests/tests/push_http_SUITE.erl +++ b/big_tests/tests/push_http_SUITE.erl @@ -178,9 +178,9 @@ stop_pool() -> rpc(mongoose_wpool, stop, [http, <<"localhost">>, http_pool]). setup_modules() -> - {Mod, Code} = rpc(dynamic_compile, from_string, [custom_module_code()]), + {Mod, Code} = dynamic_compile:from_string(custom_module_code()), rpc(code, load_binary, [Mod, "mod_event_pusher_http_custom.erl", Code]), - {Mod2, Code2} = rpc(dynamic_compile, from_string, [custom_module_code_2()]), + {Mod2, Code2} = dynamic_compile:from_string(custom_module_code_2()), rpc(code, load_binary, [Mod2, "mod_event_pusher_http_custom_2.erl", Code2]), ok. diff --git a/big_tests/tests/tcp_listener_SUITE.erl b/big_tests/tests/tcp_listener_SUITE.erl index 375fa020645..ae2ddb182b6 100644 --- a/big_tests/tests/tcp_listener_SUITE.erl +++ b/big_tests/tests/tcp_listener_SUITE.erl @@ -42,7 +42,7 @@ end_per_suite(_Config) -> teardown_meck(). setup_meck() -> - {Mod, Code} = rpc(mim(), dynamic_compile, from_string, [tcp_listener_helper_code()]), + {Mod, Code} = dynamic_compile:from_string(tcp_listener_helper_code()), rpc(mim(), code, load_binary, [Mod, "tcp_listener_helper.erl", Code]), ok = rpc(mim(), meck, new, [mongoose_tcp_listener, [passthrough, no_link]]), ok = rpc(mim(), tcp_listener_helper, setup_meck, []).