Skip to content

Commit

Permalink
Specify our own env variable for skipping IPV6 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley Moxam committed Dec 19, 2017
1 parent 3829a94 commit b0a4ab4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ branches:
env:
global:
- AWS_ACCESS_KEY_ID=AKIAIRL4BWFPN7P54TBQ
- SKIP_IPV6=true
- secure: Zd/tZVmV2dRMao9z+ky5BywSKuWOF3MiKsZetwd1upZ+uj9qzfbOZMnWFW9dlA+Co4MyYqP/I6ADzRpoKLINUqEIPcAPNYQB1qG79SafrRAvTqcjtEHTn2wXh2ZGu3f1T+SCK0ZD3xx1ML8502ENzXjvq+dEmi4kknqmPudkb6k=

notifications:
Expand Down
6 changes: 3 additions & 3 deletions spec/std/socket_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ describe TCPServer do

it "fails when port is in use on IPv6" do
# Travis-CI does not support IPv6
next if ENV.has_key?("TRAVIS")
next if ENV.has_key?("SKIP_IPV6")

port = free_udp_socket_port

Expand Down Expand Up @@ -595,7 +595,7 @@ describe UDPSocket do

it "reads and writes data to server over IPv6" do
# Travis-CI does not support IPv6
next if ENV.has_key?("TRAVIS")
next if ENV.has_key?("SKIP_IPV6")

port = free_udp_socket_port

Expand Down Expand Up @@ -649,7 +649,7 @@ describe UDPSocket do

it "sends and receives messages over IPv6" do
# Travis-CI does not support IPv6
next if ENV.has_key?("TRAVIS")
next if ENV.has_key?("SKIP_IPV6")

buffer = uninitialized UInt8[1500]

Expand Down

0 comments on commit b0a4ab4

Please sign in to comment.