fix: add-host for stand e2e under Docker host network (IFT DNS)
This commit is contained in:
@@ -149,10 +149,10 @@ ct_mode() ->
|
||||
wait_for_remote() ->
|
||||
URL = api_test_runner:get_admin_url() ++ "/admin/health",
|
||||
ct:pal("Waiting for remote API: ~s", [URL]),
|
||||
wait_for_health(URL, 30).
|
||||
wait_for_health(URL, 90).
|
||||
|
||||
wait_for_health(_URL, 0) ->
|
||||
ct:fail("Remote API did not start within 30 seconds");
|
||||
ct:fail("Remote API did not start within 90 seconds");
|
||||
wait_for_health(URL, Retries) ->
|
||||
case httpc:request(get, {URL, []}, [{timeout, 5000}, {ssl, [{verify, verify_none}]}], []) of
|
||||
{ok, {{_, 200, _}, _, _}} -> ok;
|
||||
|
||||
@@ -177,10 +177,10 @@ ct_mode() ->
|
||||
wait_for_remote() ->
|
||||
URL = api_test_runner:get_base_url() ++ "/health",
|
||||
ct:pal("Waiting for remote API: ~s", [URL]),
|
||||
wait_for_health(URL, 30).
|
||||
wait_for_health(URL, 90).
|
||||
|
||||
wait_for_health(_URL, 0) ->
|
||||
ct:fail("Remote API did not start within 30 seconds");
|
||||
ct:fail("Remote API did not start within 90 seconds");
|
||||
wait_for_health(URL, Retries) ->
|
||||
case httpc:request(get, {URL, []}, [{timeout, 5000}, {ssl, [{verify, verify_none}]}], []) of
|
||||
{ok, {{_, 200, _}, _, _}} -> ok;
|
||||
|
||||
Reference in New Issue
Block a user