feat: use http port to detect server availability
This commit is contained in:
parent
cd9d5f287e
commit
9f200120c2
|
@ -80,7 +80,7 @@ init_per_group(GreptimedbType, Config0) when
|
||||||
proxy_name => "greptimedb_tls"
|
proxy_name => "greptimedb_tls"
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
case emqx_common_test_helpers:is_tcp_server_available(GreptimedbHost, GreptimedbPort) of
|
case emqx_common_test_helpers:is_tcp_server_available(GreptimedbHost, GreptimedbHttpPort) of
|
||||||
true ->
|
true ->
|
||||||
ProxyHost = os:getenv("PROXY_HOST", "toxiproxy"),
|
ProxyHost = os:getenv("PROXY_HOST", "toxiproxy"),
|
||||||
ProxyPort = list_to_integer(os:getenv("PROXY_PORT", "8474")),
|
ProxyPort = list_to_integer(os:getenv("PROXY_PORT", "8474")),
|
||||||
|
@ -93,7 +93,7 @@ init_per_group(GreptimedbType, Config0) when
|
||||||
{Name, ConfigString, GreptimedbConfig} = greptimedb_config(
|
{Name, ConfigString, GreptimedbConfig} = greptimedb_config(
|
||||||
grpcv1, GreptimedbHost, GreptimedbPort, Config
|
grpcv1, GreptimedbHost, GreptimedbPort, Config
|
||||||
),
|
),
|
||||||
EHttpcPoolNameBin = <<(atom_to_binary(?MODULE))/binary, "_grpcv1">>,
|
EHttpcPoolNameBin = <<(atom_to_binary(?MODULE))/binary, "_http">>,
|
||||||
EHttpcPoolName = binary_to_atom(EHttpcPoolNameBin),
|
EHttpcPoolName = binary_to_atom(EHttpcPoolNameBin),
|
||||||
{EHttpcTransport, EHttpcTransportOpts} =
|
{EHttpcTransport, EHttpcTransportOpts} =
|
||||||
case UseTLS of
|
case UseTLS of
|
||||||
|
|
Loading…
Reference in New Issue