Skip to content

Commit

Permalink
Merge pull request #4351 from esl/move-dynamic-compile
Browse files Browse the repository at this point in the history
Move dynamic_compile into big tests from the main project
  • Loading branch information
gustawlippa authored Aug 19, 2024
2 parents 344108f + 7e57d9b commit 87ce067
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion big_tests/tests/acc_e2e_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion big_tests/tests/amp_big_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
4 changes: 2 additions & 2 deletions big_tests/tests/push_http_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion big_tests/tests/tcp_listener_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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, []).
Expand Down

0 comments on commit 87ce067

Please sign in to comment.