test(ds): stabilize `t_session_replay_retry` testcase

This commit is contained in:
Andrew Mayorov 2024-03-19 18:33:38 +01:00
parent 73121f3ccc
commit 027b237f07
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 2 additions and 10 deletions

View File

@ -116,9 +116,10 @@ app_specs() ->
app_specs(_Opts = #{}).
app_specs(Opts) ->
DefaultEMQXConf = "session_persistence {enable = true, renew_streams_interval = 1s}",
ExtraEMQXConf = maps:get(extra_emqx_conf, Opts, ""),
[
{emqx, "session_persistence = {enable = true}" ++ ExtraEMQXConf}
{emqx, DefaultEMQXConf ++ ExtraEMQXConf}
].
get_mqtt_port(Node, Type) ->
@ -132,15 +133,6 @@ wait_nodeup(Node) ->
pong = net_adm:ping(Node)
).
wait_gen_rpc_down(_NodeSpec = #{apps := Apps}) ->
#{override_env := Env} = proplists:get_value(gen_rpc, Apps),
Port = proplists:get_value(tcp_server_port, Env),
?retry(
_Sleep0 = 500,
_Attempts0 = 50,
false = emqx_common_test_helpers:is_tcp_server_available("127.0.0.1", Port)
).
start_client(Opts0 = #{}) ->
Defaults = #{
proto_ver => v5,