From 8e377af6b037a3aac50d3433155d8e940c0a2f83 Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Mon, 9 Sep 2024 22:06:02 +0200 Subject: [PATCH] Add an IPv4-related test --- test/redix_test.exs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/redix_test.exs b/test/redix_test.exs index 72f2110..a2779db 100644 --- a/test/redix_test.exs +++ b/test/redix_test.exs @@ -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",