Fix common test (webserver root dir)

This commit is contained in:
Сергей Прохоров 2019-03-04 11:07:42 +01:00
parent 8be2a3da0e
commit 8a80fd4b59
No known key found for this signature in database
GPG key ID: 1C570244E4EF3337

View file

@ -98,12 +98,13 @@ start_config_server(Ip, Port, Secret, DcConfig, Acc) ->
end,
{K, OldV}
end || {K, V} <- Env],
RootDir = code:lib_dir(mtproto_proxy, test),
{ok, Pid} =
inets:start(httpd,
[{port, Port},
{server_name, "mtp_config"},
{server_root, "/tmp"},
{document_root, code:priv_dir(mtproto_proxy)},
{document_root, RootDir},
{bind_address, Ip},
{modules, [?MODULE]},