Skip to content

Commit

Permalink
error passthrough test - check return values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bharanee Rathna committed Jun 10, 2019
1 parent 7c0ce2a commit 7211d11
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/readonly_reconnect_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,8 @@ defmodule ReadonlyReconnectTest do
assert redis == pid
end

test "pass through other errors", %{redis: redis} do
Exq.Redis.Connection.q(:testredis, ["GETS", "key"])
refute_received({:EXIT, pid, :killed})

Exq.Redis.Connection.qp(:testredis, [["GETS", "key"]])
refute_received({:EXIT, pid, :killed})
test "pass through other errors" do
assert {:error, %Redix.Error{}} = Exq.Redis.Connection.q(:testredis, ["GETS", "key"])
assert {:ok, [%Redix.Error{}]} = Exq.Redis.Connection.qp(:testredis, [["GETS", "key"]])
end
end

0 comments on commit 7211d11

Please sign in to comment.