From d58d874a0b9744fc3c3f790f0f85d58f7ec08a7d Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Wed, 4 Dec 2024 11:07:34 -0500 Subject: [PATCH] CLI: Resolve elixirc warnings --- deps/rabbitmq_cli/lib/rabbitmq/cli/auto_complete.ex | 2 +- .../check_if_any_deprecated_features_are_used_command_test.exs | 2 +- ..._cluster_has_classic_queue_mirroring_policy_command_test.exs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/rabbitmq_cli/lib/rabbitmq/cli/auto_complete.ex b/deps/rabbitmq_cli/lib/rabbitmq/cli/auto_complete.ex index 9983125bf2..9a0cfe342c 100644 --- a/deps/rabbitmq_cli/lib/rabbitmq/cli/auto_complete.ex +++ b/deps/rabbitmq_cli/lib/rabbitmq/cli/auto_complete.ex @@ -94,7 +94,7 @@ defmodule RabbitMQ.CLI.AutoComplete do defp complete_command_opts(command, <<"-", _::binary>> = opt) do switches = - command.switches + command.switches() |> Keyword.keys() |> Enum.map(fn sw -> "--" <> to_string(sw) end) diff --git a/deps/rabbitmq_cli/test/diagnostics/check_if_any_deprecated_features_are_used_command_test.exs b/deps/rabbitmq_cli/test/diagnostics/check_if_any_deprecated_features_are_used_command_test.exs index 4f05e67052..b7cb27683e 100644 --- a/deps/rabbitmq_cli/test/diagnostics/check_if_any_deprecated_features_are_used_command_test.exs +++ b/deps/rabbitmq_cli/test/diagnostics/check_if_any_deprecated_features_are_used_command_test.exs @@ -10,7 +10,7 @@ defmodule CheckIfAnyDeprecatedFeaturesAreUsedCommandTest do @command RabbitMQ.CLI.Diagnostics.Commands.CheckIfAnyDeprecatedFeaturesAreUsedCommand @policy_name "cmq-policy-8373" - @policy_value "{\"ha-mode\":\"all\"}" + # @policy_value "{\"ha-mode\":\"all\"}" setup_all do RabbitMQ.CLI.Core.Distribution.start() diff --git a/deps/rabbitmq_cli/test/diagnostics/check_if_cluster_has_classic_queue_mirroring_policy_command_test.exs b/deps/rabbitmq_cli/test/diagnostics/check_if_cluster_has_classic_queue_mirroring_policy_command_test.exs index bcc926e555..b5b3e95d9d 100644 --- a/deps/rabbitmq_cli/test/diagnostics/check_if_cluster_has_classic_queue_mirroring_policy_command_test.exs +++ b/deps/rabbitmq_cli/test/diagnostics/check_if_cluster_has_classic_queue_mirroring_policy_command_test.exs @@ -10,7 +10,7 @@ defmodule CheckIfClusterHasClassicQueueMirroringPolicyCommandTest do @command RabbitMQ.CLI.Diagnostics.Commands.CheckIfClusterHasClassicQueueMirroringPolicyCommand @policy_name "cmq-policy-8373" - @policy_value "{\"ha-mode\":\"all\"}" + # @policy_value "{\"ha-mode\":\"all\"}" setup_all do RabbitMQ.CLI.Core.Distribution.start()