Skip to content

Commit 625eded

Browse files
Update tests
1 parent 5caad16 commit 625eded

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

deps/rabbitmq_cli/test/ctl/node_health_check_command_test.exs

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,11 @@ defmodule NodeHealthCheckCommandTest do
3838
assert @command.validate([], context[:opts]) == :ok
3939
end
4040

41-
test "run: request to a named, active node succeeds", context do
41+
test "run: is a no-op", context do
4242
assert @command.run([], context[:opts])
4343
end
4444

45-
test "run: request to a named, active node with an alarm in effect fails", context do
46-
set_vm_memory_high_watermark(0.0000000000001)
47-
# give VM memory monitor check some time to kick in
48-
:timer.sleep(1500)
49-
{:healthcheck_failed, _message} = @command.run([], context[:opts])
50-
51-
reset_vm_memory_high_watermark()
52-
:timer.sleep(1500)
53-
assert @command.run([], context[:opts]) == :ok
54-
end
55-
56-
test "run: request to a non-existent node returns a badrpc" do
57-
assert match?({:badrpc, _}, @command.run([], %{node: :jake@thedog, timeout: 200}))
58-
end
59-
6045
test "banner", context do
61-
assert @command.banner([], context[:opts]) |> Enum.join("\n") =~ ~r/Checking health/
62-
assert @command.banner([], context[:opts]) |> Enum.join("\n") =~ ~r/#{get_rabbit_hostname()}/
46+
assert @command.banner([], context[:opts]) |> Enum.join("\n") =~ ~r/DEPRECATED/
6347
end
6448
end

0 commit comments

Comments
 (0)