diff --git a/test/redix/start_options_test.exs b/test/redix/start_options_test.exs index 4e6b016..193db74 100644 --- a/test/redix/start_options_test.exs +++ b/test/redix/start_options_test.exs @@ -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 @@ -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 diff --git a/test/redix_test.exs b/test/redix_test.exs index 55a078a..3e7e95c 100644 --- a/test/redix_test.exs +++ b/test/redix_test.exs @@ -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"