Skip to content

Commit

Permalink
FIXUP
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Oct 18, 2023
1 parent d320fa0 commit afa9cd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/redix/start_options_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ defmodule Redix.StartOptionsTest do
sentinels = opts[:sentinel][:sentinels]

assert Enum.count(sentinels) == 2
assert Enum.find(sentinels, &(&1[:host] == 'host1'))[:password] == "secret1"
assert Enum.find(sentinels, &(&1[:host] == 'host2'))[:password] == "secret2"
assert Enum.find(sentinels, &(&1[:host] == ~c"host1"))[:password] == "secret1"
assert Enum.find(sentinels, &(&1[:host] == ~c"host2"))[:password] == "secret2"
end

test "sentinel password mfa" do
Expand All @@ -141,8 +141,8 @@ defmodule Redix.StartOptionsTest do
sentinels = opts[:sentinel][:sentinels]

assert Enum.count(sentinels) == 2
assert Enum.find(sentinels, &(&1[:host] == 'host1'))[:password] == mfa1
assert Enum.find(sentinels, &(&1[:host] == 'host2'))[:password] == mfa2
assert Enum.find(sentinels, &(&1[:host] == ~c"host1"))[:password] == mfa1
assert Enum.find(sentinels, &(&1[:host] == ~c"host2"))[:password] == mfa2
end

test "gen_statem options are allowed" do
Expand Down
3 changes: 2 additions & 1 deletion test/redix_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,8 @@ defmodule RedixTest do
# with a hard-to-understand error (see the issue linked above).
_ = Redix.noreply_command(conn, ["INCR", key])

assert {%RuntimeError{} = error, _stacktrace} = catch_exit(Redix.command!(conn, ["PING"]))
assert {:redix_exited_during_call, {%RuntimeError{} = error, _stacktrace}} =
catch_exit(Redix.command!(conn, ["PING"]))

assert Exception.message(error) =~
"failed to find an original command in the commands queue"
Expand Down

0 comments on commit afa9cd9

Please sign in to comment.