diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2019-12-16 16:29:00 +0100 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2019-12-16 16:29:00 +0100 |
| commit | 6ca895a30105c0e0553e56cead0d72cb3148a15c (patch) | |
| tree | a73a514d765bee35ff86561dae63e48cb0ba6ce6 | |
| parent | cd4dcca2a9f6e2fbddb9be7e19e9f618f123be46 (diff) | |
| download | rabbitmq-server-git-6ca895a30105c0e0553e56cead0d72cb3148a15c.tar.gz | |
unit_inbroker_parallel_SUITE: Fix use of `?config()`
This macro is used when the requested key always exists. If this is not
the case, `rabbit_ct_helpers:get_config()` should be used.
This fixes a warning reported by common_test.
| -rw-r--r-- | test/unit_inbroker_parallel_SUITE.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit_inbroker_parallel_SUITE.erl b/test/unit_inbroker_parallel_SUITE.erl index a14d823643..b701a162d0 100644 --- a/test/unit_inbroker_parallel_SUITE.erl +++ b/test/unit_inbroker_parallel_SUITE.erl @@ -1337,7 +1337,7 @@ check_max_length_drops_head(Config, QName, Ch, Payload1, Payload2, Payload3) -> #'basic.get_empty'{} = amqp_channel:call(Ch, #'basic.get'{queue = QName}). sync_mirrors(QName, Config) -> - case ?config(is_mirrored, Config) of + case rabbit_ct_helpers:get_config(Config, is_mirrored) of true -> rabbit_ct_broker_helpers:rabbitmqctl(Config, 0, [<<"sync_queue">>, QName]); _ -> ok |
