Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dcorbacho committed Feb 27, 2023
1 parent bae30c9 commit d9a6e89
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deps/rabbitmq_mqtt/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ rabbitmq_suite(
"//deps/amqp_client:erlang_app",
"//deps/rabbit_common:erlang_app",
],
runtime_deps = [
"@meck//:erlang_app",
],
)

rabbitmq_integration_suite(
Expand Down
8 changes: 8 additions & 0 deletions deps/rabbitmq_mqtt/test/processor_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,17 @@ init_per_testcase(get_vhost, Config) ->
mnesia:create_table(rabbit_runtime_parameters, [
{attributes, record_info(fields, runtime_parameters)},
{record_name, runtime_parameters}]),
meck:new(rabbit_feature_flags, [passthrough, no_link]),
meck:expect(
rabbit_feature_flags, is_enabled,
fun
(raft_based_metadata_store_phase1, _) -> false;
(FeatureNames, _) -> meck:passthrough([FeatureNames])
end),
Config;
init_per_testcase(_, Config) -> Config.
end_per_testcase(get_vhost, Config) ->
meck:unload(rabbit_feature_flags),
mnesia:stop(),
Config;
end_per_testcase(_, Config) -> Config.
Expand Down

0 comments on commit d9a6e89

Please # to comment.