Fix common test (webserver root dir)

parent 8be2a3da
...@@ -98,12 +98,13 @@ start_config_server(Ip, Port, Secret, DcConfig, Acc) -> ...@@ -98,12 +98,13 @@ start_config_server(Ip, Port, Secret, DcConfig, Acc) ->
end, end,
{K, OldV} {K, OldV}
end || {K, V} <- Env], end || {K, V} <- Env],
RootDir = code:lib_dir(mtproto_proxy, test),
{ok, Pid} = {ok, Pid} =
inets:start(httpd, inets:start(httpd,
[{port, Port}, [{port, Port},
{server_name, "mtp_config"}, {server_name, "mtp_config"},
{server_root, "/tmp"}, {server_root, "/tmp"},
{document_root, code:priv_dir(mtproto_proxy)}, {document_root, RootDir},
{bind_address, Ip}, {bind_address, Ip},
{modules, [?MODULE]}, {modules, [?MODULE]},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment