Skip to content

Commit 4d80901

Browse files
committed
cli
1 parent 4903573 commit 4d80901

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

deps/rabbitmq_cli/test/ctl/reset_command_test.exs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,15 @@ defmodule ResetCommandTest do
4444
test "run: reset request to an active node with a running rabbit app fails", context do
4545
add_vhost("some_vhost")
4646
assert vhost_exists?("some_vhost")
47-
assert match?({:error, :mnesia_unexpectedly_running}, @command.run([], context[:opts]))
47+
node = get_rabbit_hostname()
48+
ret = @command.run([], context[:opts])
49+
case :rabbit_misc.rpc_call(node, :rabbit_khepri, :is_enabled, []) do
50+
true ->
51+
assert match?({:error, :rabbitmq_unexpectedly_running}, ret)
52+
53+
false ->
54+
assert match?({:error, :mnesia_unexpectedly_running}, ret)
55+
end
4856
assert vhost_exists?("some_vhost")
4957
end
5058

0 commit comments

Comments
 (0)