Skip to content

Commit

Permalink
Do not silently skip wrong elements in tested options
Browse files Browse the repository at this point in the history
The test would succeed instead of failing.
  • Loading branch information
chrzaszcz authored and NelsonVides committed Feb 17, 2022
1 parent 33d635f commit b7547c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/config_parser_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -3210,7 +3210,7 @@ maybe_insert_dummy_domain(M) ->
-spec host_opts([{key_prefix(), mongoose_config:value()}]) ->
[{mongoose_config:key() | mongoose_config:key_path(), mongoose_config:value()}].
host_opts(ExpectedOptions) ->
[{host_key(Key), Value} || {Key, Value} <- ExpectedOptions].
lists:map(fun({Key, Value}) -> {host_key(Key), Value} end, ExpectedOptions).

%% @doc Build full per-host config key for host-or-global options
-spec host_key(top_level_key_prefix()) -> mongoose_config:key();
Expand Down

0 comments on commit b7547c7

Please sign in to comment.