Skip to content

Commit

Permalink
Pend hanging accept_nonblock tests on MacOS
Browse files Browse the repository at this point in the history
See #7731
  • Loading branch information
headius committed Mar 20, 2023
1 parent 04d947f commit 91d76be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/jruby/test_socket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ def test_can_create_socket_server
end

def test_can_create_socket_server_and_accept_nonblocking
pending_hangs_on_macos_aarch64
path = "/tmp/sample"

File.unlink(path) if File.exist?(path)
Expand Down Expand Up @@ -632,6 +633,7 @@ def test_can_read_and_get_minus_one
end

def test_recv_nonblock
pending_hangs_on_macos_aarch64
s1, s2 = UNIXSocket.pair(Socket::SOCK_DGRAM)
begin
s1.recv_nonblock(1)
Expand All @@ -656,7 +658,12 @@ def test_recv_nonblock
end

end
private

def pending_hangs_on_macos_aarch64
pend "hangs on MacOS/ARM64" if RbConfig::CONFIG['host_os'] =~ /darwin/
end
end

class ServerTest < Test::Unit::TestCase
include TestHelper
Expand Down

0 comments on commit 91d76be

Please sign in to comment.