Skip to content

Commit

Permalink
Add an IPv4-related test
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Sep 9, 2024
1 parent 77e8891 commit 8e377af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/redix_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ defmodule RedixTest do
end
end

test "with IPv4" do
{:ok, pid} = Redix.start_link("redis://127.0.0.1:6379", sync_connect: true)
assert Redix.command(pid, ["PING"]) == {:ok, "PONG"}
end

test "with IPv6" do
{:ok, pid} =
Redix.start_link("redis://[::1]:6379",
Expand Down

0 comments on commit 8e377af

Please sign in to comment.