Squash a couple of test warnings

This commit is contained in:
Michael Klishin 2019-02-14 15:48:36 +03:00 committed by kjnilsson
parent ddf6841f2f
commit f7a74c4183
1 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,6 @@
defmodule VersionCommandTest do
use ExUnit.Case
import TestHelper
@command RabbitMQ.CLI.Ctl.Commands.VersionCommand
@ -40,8 +39,8 @@ defmodule VersionCommandTest do
assert @command.validate([], %{}) == :ok
end
test "run: returns Erlang/OTP version on the local node", context do
{:ok, version} = @command.run([], context[:opts])
test "run: returns Erlang/OTP version on the local node" do
{:ok, version} = @command.run([], %{})
assert Regex.match?(~r/^\d+\.\d+\.\d+/, version)
end
end