fix(test): discard already_started error for gpc test server
This commit is contained in:
parent
eacc7768d2
commit
b846220ffd
|
@ -106,10 +106,13 @@ end).
|
||||||
|
|
||||||
start() ->
|
start() ->
|
||||||
application:ensure_all_started(grpc),
|
application:ensure_all_started(grpc),
|
||||||
[start_channel(), start_server()].
|
[ensure_channel(), start_server()].
|
||||||
|
|
||||||
start_channel() ->
|
ensure_channel() ->
|
||||||
grpc_client_sup:create_channel_pool(ct_test_channel, "http://127.0.0.1:9100", #{}).
|
case grpc_client_sup:create_channel_pool(ct_test_channel, "http://127.0.0.1:9100", #{}) of
|
||||||
|
{error, {already_started, Pid}} -> {ok, Pid};
|
||||||
|
{ok, Pid} -> {ok, Pid}
|
||||||
|
end.
|
||||||
|
|
||||||
start_server() ->
|
start_server() ->
|
||||||
Services = #{
|
Services = #{
|
||||||
|
|
Loading…
Reference in New Issue