Skip to content

Commit 9dacdfe

Browse files
committed
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.
1 parent 36972c3 commit 9dacdfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rabbit_feature_flags.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120

121121
%% RabbitMQ internal use only.
122122
-export([initialize_registry/0,
123+
initialize_registry/1,
123124
mark_as_enabled_locally/2,
124125
remote_nodes/0,
125126
running_remote_nodes/0,
@@ -128,8 +129,7 @@
128129
do_sync_feature_flags_with_node/1]).
129130

130131
-ifdef(TEST).
131-
-export([initialize_registry/1,
132-
initialize_registry/3,
132+
-export([initialize_registry/3,
133133
query_supported_feature_flags/0,
134134
mark_as_enabled_remotely/2,
135135
mark_as_enabled_remotely/4]).

0 commit comments

Comments
 (0)