diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2019-02-07 16:39:14 +0100 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2019-02-07 16:39:14 +0100 |
| commit | e54a003bdc6d139b4c13636ea37854a4746b62f8 (patch) | |
| tree | aa15c4aac2520afed2f242a9b3c89591fe9d2126 | |
| parent | 61c35e0b8c2b9855c4ecde3a23c0efe56b0b9a21 (diff) | |
| download | rabbitmq-server-git-e54a003bdc6d139b4c13636ea37854a4746b62f8.tar.gz | |
unit_SUITE: Set the `feature_flags_file` app parameter
... before using `rabbit:start_apps()`. It's required for proper feature
flags support.
[#160169569]
| -rw-r--r-- | test/unit_SUITE.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit_SUITE.erl b/test/unit_SUITE.erl index 1c3b453c04..7a41e419e9 100644 --- a/test/unit_SUITE.erl +++ b/test/unit_SUITE.erl @@ -80,6 +80,7 @@ init_per_testcase(TC, Config) when TC =:= decrypt_start_app; TC =:= decrypt_start_app_file; TC =:= decrypt_start_app_undefined -> application:load(rabbit), + application:set_env(rabbit, feature_flags_file, ""), Config; init_per_testcase(_Testcase, Config) -> Config. @@ -262,7 +263,7 @@ decrypt_start_app_undefined(Config) -> rabbit:start_apps([rabbit_shovel_test], #{rabbit => temporary}) catch exit:{bad_configuration, config_entry_decoder} -> ok; - _:_ -> exit(unexpected_exception) + _:Exception -> exit({unexpected_exception, Exception}) end. decrypt_start_app_wrong_passphrase(Config) -> @@ -282,7 +283,7 @@ decrypt_start_app_wrong_passphrase(Config) -> rabbit:start_apps([rabbit_shovel_test], #{rabbit => temporary}) catch exit:{decryption_error,_,_} -> ok; - _:_ -> exit(unexpected_exception) + _:Exception -> exit({unexpected_exception, Exception}) end. rabbitmqctl_encode(_Config) -> |
