Skip to content

Commit fbbb7d0

Browse files
committed
Quarantine some new specs for Socket#recvfrom_nonblock()
1 parent 03ffa51 commit fbbb7d0

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

library/socket/basicsocket/recv_nonblock_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@
113113
end
114114

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

@@ -134,6 +135,7 @@
134135

135136
t.value.should == ""
136137
end
138+
end
137139
end
138140

139141
ruby_version_is "3.3" do

library/socket/basicsocket/recvmsg_nonblock_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@
236236
end
237237

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

@@ -258,6 +259,7 @@
258259
t.value.should.is_a? Array
259260
t.value[0].should == ""
260261
end
262+
end
261263
end
262264

263265
ruby_version_is "3.3" do

library/socket/socket/recvfrom_nonblock_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
end
160160

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

@@ -181,9 +182,11 @@
181182
t.value.should.is_a? Array
182183
t.value[0].should == ""
183184
end
185+
end
184186
end
185187

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

@@ -205,6 +208,7 @@
205208

206209
t.value.should be_nil
207210
end
211+
end
208212
end
209213
end
210214
end

0 commit comments

Comments
 (0)