style: fix spelling mistake (thanks @savonarola)

This commit is contained in:
Kjell Winblad 2024-04-30 09:28:12 +02:00
parent db48a977bb
commit 7b638a5829
1 changed files with 4 additions and 4 deletions

View File

@ -79,10 +79,10 @@ t_run_case(Config) ->
run_case(Config, false), run_case(Config, false),
run_case(Config, auto). run_case(Config, auto).
run_case(Config, UseLegazyProtocol) -> run_case(Config, UseLegacyProtocol) ->
Case = ?config(test_case, Config), Case = ?config(test_case, Config),
ok = setup_source_data(Case), ok = setup_source_data(Case),
ok = setup_authz_source(Case#{use_legacy_protocol => UseLegazyProtocol}), ok = setup_authz_source(Case#{use_legacy_protocol => UseLegacyProtocol}),
ok = emqx_authz_test_lib:run_checks(Case). ok = emqx_authz_test_lib:run_checks(Case).
%%------------------------------------------------------------------------------ %%------------------------------------------------------------------------------
@ -379,11 +379,11 @@ setup_source_data(#{records := Records}) ->
{{true, _}, _} = mc_worker_api:insert(?MONGO_CLIENT, <<"acl">>, Records), {{true, _}, _} = mc_worker_api:insert(?MONGO_CLIENT, <<"acl">>, Records),
ok. ok.
setup_authz_source(#{filter := Filter, use_legacy_protocol := UseLegazyProtocol}) -> setup_authz_source(#{filter := Filter, use_legacy_protocol := UseLegacyProtocol}) ->
setup_config( setup_config(
#{ #{
<<"filter">> => Filter, <<"filter">> => Filter,
<<"use_legacy_protocol">> => UseLegazyProtocol <<"use_legacy_protocol">> => UseLegacyProtocol
} }
). ).