We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6652ad7 commit 6c5e6b3Copy full SHA for 6c5e6b3
test/test_pair.rb
@@ -218,7 +218,7 @@ def test_read_nonblock
218
assert_nothing_raised("[ruby-core:20298]") { ret = s2.read_nonblock(10) }
219
assert_equal("def\n", ret)
220
s1.close
221
- sleep 0.1
+ IO.select([s2])
222
assert_raise(EOFError) { s2.read_nonblock(10) }
223
}
224
end
@@ -234,7 +234,7 @@ def test_read_nonblock_no_exception
234
assert_nothing_raised("[ruby-core:20298]") { ret = s2.read_nonblock(10, exception: false) }
235
236
237
238
assert_equal(nil, s2.read_nonblock(10, exception: false))
239
240
0 commit comments