Skip to content

Commit

Permalink
Travis-CI no longer supports IPv6 on newer build enviroments.
Browse files Browse the repository at this point in the history
  • Loading branch information
knutin committed Aug 15, 2017
1 parent b9804fa commit ec8ad11
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions test/eredis_tests.erl
Expand Up @@ -7,8 +7,15 @@

connect_test() ->
?assertMatch({ok, _}, eredis:start_link("127.0.0.1", 6379)),
?assertMatch({ok, _}, eredis:start_link("::1", 6379)),
?assertMatch({ok, _}, eredis:start_link("localhost", 6379)).
?assertMatch({ok, _}, eredis:start_link("localhost", 6379)),

case eredis:start_link("::1", 6379) of
{error, enetunreach} ->
%% Travis-CI has no IPv6
ok;
Result ->
?assertMatch({ok, _}, Result)
end.


get_set_test() ->
Expand Down

0 comments on commit ec8ad11

Please sign in to comment.