Skip to content

Commit a8a9b1d

Browse files
committed
Only run IPv4/IPv6 tests for the Ruby driver
EventMachine doesn't appear to support IPv6, nor does hiredis.
1 parent 2e60e56 commit a8a9b1d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

test/internals_test.rb

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -383,15 +383,19 @@ def af_test(host)
383383
end
384384
end
385385

386-
af_family_supported(Socket::AF_INET) do
387-
def test_connect_ipv4
388-
af_test("127.0.0.1")
386+
driver(:ruby) do
387+
af_family_supported(Socket::AF_INET) do
388+
def test_connect_ipv4
389+
af_test("127.0.0.1")
390+
end
389391
end
390392
end
391393

392-
af_family_supported(Socket::AF_INET6) do
393-
def test_connect_ipv6
394-
af_test("::1")
394+
driver(:ruby) do
395+
af_family_supported(Socket::AF_INET6) do
396+
def test_connect_ipv6
397+
af_test("::1")
398+
end
395399
end
396400
end
397401
end

0 commit comments

Comments
 (0)