test(shared_sub): Apply remarks

Co-authored-by: Thales Macedo Garitezi <thalesmg@gmail.com>
This commit is contained in:
ieQu1 2022-07-26 15:25:01 +02:00 committed by GitHub
parent 0982e8e7fd
commit b042498b3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -45,7 +45,10 @@ init_per_suite(Config) ->
end_per_suite(Config) ->
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(_) ->
?assertEqual(false, emqx_shared_sub:is_ack_required(#message{headers = #{}})).