test: fix test case is_list(Config) function guard
This commit is contained in:
parent
bb1cf9beaa
commit
3caf114f68
|
@ -37,9 +37,8 @@ init_per_testcase(TestCase, Config) ->
|
||||||
?MODULE:TestCase({init, Config})
|
?MODULE:TestCase({init, Config})
|
||||||
catch
|
catch
|
||||||
error:function_clause ->
|
error:function_clause ->
|
||||||
ok
|
Config
|
||||||
end,
|
end.
|
||||||
Config.
|
|
||||||
|
|
||||||
end_per_testcase(TestCase, Config) ->
|
end_per_testcase(TestCase, Config) ->
|
||||||
try
|
try
|
||||||
|
@ -236,7 +235,7 @@ t_init_zones_with_user_defined_default_zone(Config) when is_list(Config) ->
|
||||||
%% Then others are defaults
|
%% Then others are defaults
|
||||||
?assertEqual(ExpectedOthers, Others).
|
?assertEqual(ExpectedOthers, Others).
|
||||||
|
|
||||||
t_init_zones_with_user_defined_other_zone(Config) ->
|
t_init_zones_with_user_defined_other_zone(Config) when is_list(Config) ->
|
||||||
emqx_config:erase_all(),
|
emqx_config:erase_all(),
|
||||||
%% Given user defined config for default zone
|
%% Given user defined config for default zone
|
||||||
ConfFile = prepare_conf_file(
|
ConfFile = prepare_conf_file(
|
||||||
|
|
Loading…
Reference in New Issue