aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2019-03-21 13:00:18 +0100
committerGitHub <[email protected]>2019-03-21 13:00:18 +0100
commitda13166940df546d3fb05a71948f1709d72dd354 (patch)
treed393d759edd8f5a12aa3745ac5807116da55046d /lib/kernel/test
parent270f6adc1085040f906ce6338967da02a7edc834 (diff)
parent4ff5cdd7ec35201e70e54f908f6a6805d42e5fb1 (diff)
downloadotp-da13166940df546d3fb05a71948f1709d72dd354.tar.gz
otp-da13166940df546d3fb05a71948f1709d72dd354.tar.bz2
otp-da13166940df546d3fb05a71948f1709d72dd354.zip
Merge pull request #2170 from josevalim/jv-set-env-error
Error on duplicated config apps/keys in -config
Diffstat (limited to 'lib/kernel/test')
-rw-r--r--lib/kernel/test/application_SUITE.erl17
1 files changed, 5 insertions, 12 deletions
diff --git a/lib/kernel/test/application_SUITE.erl b/lib/kernel/test/application_SUITE.erl
index 94d7c17712..1ab554db7c 100644
--- a/lib/kernel/test/application_SUITE.erl
+++ b/lib/kernel/test/application_SUITE.erl
@@ -2020,18 +2020,11 @@ set_env_errors(Conf) when is_list(Conf) ->
"application: kernel; erroneous parameter: distributed" =
badarg_msg(fun() -> application:set_env([{kernel, [{distributed, config}]}]) end),
- %% This will raise in the future
- ct:capture_start(),
- _ = application:set_env([{foo, []}, {foo, []}]),
- timer:sleep(100),
- ct:capture_stop(),
- [_ | _] = string:find(ct:capture_get(), "duplicate application config: foo"),
-
- ct:capture_start(),
- _ = application:set_env([{foo, [{bar, baz}, {bar, bat}]}]),
- timer:sleep(100),
- ct:capture_stop(),
- [_ | _] = string:find(ct:capture_get(), "application: foo; duplicate parameter: bar"),
+ "duplicate application config: foo" =
+ badarg_msg(fun() -> application:set_env([{foo, []}, {foo, []}]) end),
+
+ "application: foo; duplicate parameter: bar" =
+ badarg_msg(fun() -> application:set_env([{foo, [{bar, baz}, {bar, bat}]}]) end),
ok.