test(shared_sub): Apply remarks
Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
This commit is contained in:
parent
0982e8e7fd
commit
b042498b3c
|
@ -45,7 +45,10 @@ init_per_suite(Config) ->
|
||||||
|
|
||||||
end_per_suite(Config) ->
|
end_per_suite(Config) ->
|
||||||
emqx_ct_helpers:stop_apps([gen_rpc]),
|
emqx_ct_helpers:stop_apps([gen_rpc]),
|
||||||
application:set_env(gen_rpc, port_discovery, proplists:get_value(port_discovery, Config)).
|
case proplists:get_value(port_discovery, Config) of
|
||||||
|
{ok, OldValue} -> application:set_env(gen_rpc, port_discovery, OldValue);
|
||||||
|
_ -> ok
|
||||||
|
end.
|
||||||
|
|
||||||
t_is_ack_required(_) ->
|
t_is_ack_required(_) ->
|
||||||
?assertEqual(false, emqx_shared_sub:is_ack_required(#message{headers = #{}})).
|
?assertEqual(false, emqx_shared_sub:is_ack_required(#message{headers = #{}})).
|
||||||
|
|
Loading…
Reference in New Issue