Skip to content

Commit

Permalink
Quarantine some new specs for Socket#recvfrom_nonblock()
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Jan 30, 2025
1 parent 03ffa51 commit fbbb7d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/socket/basicsocket/recv_nonblock_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
end

ruby_version_is ""..."3.3" do
quarantine! do # May fail with "IO::EAGAINWaitReadable: Resource temporarily unavailable - recvfrom(2) would block" error
it "returns an empty String on a closed stream socket" do
ready = false

Expand All @@ -134,6 +135,7 @@

t.value.should == ""
end
end
end

ruby_version_is "3.3" do
Expand Down
2 changes: 2 additions & 0 deletions library/socket/basicsocket/recvmsg_nonblock_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@
end

ruby_version_is ""..."3.3" do
quarantine! do # May fail with "IO::EAGAINWaitReadable: Resource temporarily unavailable - recvfrom(2) would block" error
it "returns an empty String as received data on a closed stream socket" do
ready = false

Expand All @@ -258,6 +259,7 @@
t.value.should.is_a? Array
t.value[0].should == ""
end
end
end

ruby_version_is "3.3" do
Expand Down
4 changes: 4 additions & 0 deletions library/socket/socket/recvfrom_nonblock_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
end

ruby_version_is ""..."3.3" do
quarantine! do # May fail with "IO::EAGAINWaitReadable: Resource temporarily unavailable - recvfrom(2) would block" error
it "returns an empty String as received data on a closed stream socket" do
ready = false

Expand All @@ -181,9 +182,11 @@
t.value.should.is_a? Array
t.value[0].should == ""
end
end
end

ruby_version_is "3.3" do
quarantine! do # May fail with "IO::EAGAINWaitReadable: Resource temporarily unavailable - recvfrom(2) would block" error
it "returns nil on a closed stream socket" do
ready = false

Expand All @@ -205,6 +208,7 @@

t.value.should be_nil
end
end
end
end
end
Expand Down

0 comments on commit fbbb7d0

Please sign in to comment.