summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2019-05-03 15:15:17 +0200
committerJean-Sébastien Pédron <jean-sebastien@rabbitmq.com>2019-05-03 15:17:56 +0200
commit9dacdfeade55697fb0f713a9feb8ca0089774c74 (patch)
tree719e102d2b179edfb66915b69ee549c6db4db523
parent36972c3dae8ec81d3227fb4dd8ee9685cf69651f (diff)
downloadrabbitmq-server-git-9dacdfeade55697fb0f713a9feb8ca0089774c74.tar.gz
rabbit_feature_flags: Export initialize_registry/1 for the testsuite
Hiding the export behind the `TEST` macro should work on the paper. Unfortunately, when we compile a test plugin as part of the `feature_flags_SUITE` testsuite, `rabbit` is recompiled without the `TEST` macro. This causes the testsuite to fail with an `undef` exception because initialize_registry/1 is not exported anymore.
-rw-r--r--src/rabbit_feature_flags.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_feature_flags.erl b/src/rabbit_feature_flags.erl
index a782b937a3..71c719a1b6 100644
--- a/src/rabbit_feature_flags.erl
+++ b/src/rabbit_feature_flags.erl
@@ -120,6 +120,7 @@
%% RabbitMQ internal use only.
-export([initialize_registry/0,
+ initialize_registry/1,
mark_as_enabled_locally/2,
remote_nodes/0,
running_remote_nodes/0,
@@ -128,8 +129,7 @@
do_sync_feature_flags_with_node/1]).
-ifdef(TEST).
--export([initialize_registry/1,
- initialize_registry/3,
+-export([initialize_registry/3,
query_supported_feature_flags/0,
mark_as_enabled_remotely/2,
mark_as_enabled_remotely/4]).