test(api): CT на портах 18080/18445 вне docker-dev [skip ci]
This commit is contained in:
@@ -69,7 +69,8 @@ init_per_suite(Config) ->
|
||||
ct:pal("Local mode: application already running"),
|
||||
[{started_by_us, false} | Config];
|
||||
false ->
|
||||
ct:pal("Local mode: starting application..."),
|
||||
ct:pal("Local mode: starting application on CT ports (18080/18445)..."),
|
||||
ok = api_test_runner:ensure_local_app_ports(),
|
||||
{ok, _} = application:ensure_all_started(eventhub),
|
||||
timer:sleep(1000),
|
||||
[{started_by_us, true} | Config]
|
||||
@@ -166,7 +167,7 @@ ct_mode() ->
|
||||
%% @private Ожидание доступности удалённого API.
|
||||
-spec wait_for_remote() -> ok.
|
||||
wait_for_remote() ->
|
||||
URL = os:getenv("API_HOST", "http://localhost:8080") ++ "/health",
|
||||
URL = api_test_runner:get_base_url() ++ "/health",
|
||||
ct:pal("Waiting for remote API: ~s", [URL]),
|
||||
wait_for_health(URL, 30).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user