Fix deprecated code:lib_dir/2 warning in mtp_test_datacenter

Replace code:lib_dir(mtproto_proxy, test) with
filename:join(code:lib_dir(mtproto_proxy), "test") as
the two-argument form is deprecated since OTP 27.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Sergey Prokhorov 2026-04-07 13:48:07 +02:00
parent dfe8ebf034
commit 2dd6e6d589
No known key found for this signature in database
GPG key ID: 1C570244E4EF3337

View file

@ -59,7 +59,7 @@ middle_connections(#{srv_ids := Ids}) ->
%% Api
start_config_server(Ip, Port, Secret, DcConfig, Acc) ->
application:load(mtproto_proxy),
RootDir = code:lib_dir(mtproto_proxy, test),
RootDir = filename:join(code:lib_dir(mtproto_proxy), "test"),
{ok, Pid} =
inets:start(httpd,
[{port, Port},