From b7547c79d483125ec980f1db30252867d898c832 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chrz=C4=85szcz?= Date: Thu, 17 Feb 2022 08:58:35 +0100 Subject: [PATCH] Do not silently skip wrong elements in tested options The test would succeed instead of failing. --- test/config_parser_SUITE.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/config_parser_SUITE.erl b/test/config_parser_SUITE.erl index 41540f58cf..a2f5c21746 100644 --- a/test/config_parser_SUITE.erl +++ b/test/config_parser_SUITE.erl @@ -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();