Skip to content

Commit

Permalink
Tag std specs that need network access (#11048)
Browse files Browse the repository at this point in the history
  • Loading branch information
toshokan authored Aug 3, 2021
1 parent 4a04eba commit 2534957
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion spec/std/socket/addrinfo_spec.cr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "spec"
require "socket/addrinfo"

describe Socket::Addrinfo do
describe Socket::Addrinfo, tags: "network" do
describe ".resolve" do
it "returns an array" do
addrinfos = Socket::Addrinfo.resolve("localhost", 80, type: Socket::Type::STREAM)
Expand Down
2 changes: 1 addition & 1 deletion spec/std/socket/socket_spec.cr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "./spec_helper"
require "../../support/tempfile"

describe Socket do
describe Socket, tags: "network" do
describe ".unix" do
it "creates a unix socket" do
sock = Socket.unix
Expand Down
2 changes: 1 addition & 1 deletion spec/std/socket/tcp_server_spec.cr
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "./spec_helper"

describe TCPServer do
describe TCPServer, tags: "network" do
describe ".new" do
each_ip_family do |family, address|
it "listens on local address" do
Expand Down
2 changes: 1 addition & 1 deletion spec/std/socket/tcp_socket_spec.cr
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "./spec_helper"

describe TCPSocket do
describe TCPSocket, tags: "network" do
describe "#connect" do
each_ip_family do |family, address|
it "connects to server" do
Expand Down
2 changes: 1 addition & 1 deletion spec/std/socket/udp_socket_spec.cr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require "./spec_helper"
require "socket"

describe UDPSocket do
describe UDPSocket, tags: "network" do
# Note: This spec fails with a IPv6 address. See pending below.
it "#remote_address resets after connect" do
socket = UDPSocket.new
Expand Down

0 comments on commit 2534957

Please sign in to comment.