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 786a0e6 commit b602ba5Copy full SHA for b602ba5
test/fiber/test_io_close.rb
@@ -6,11 +6,18 @@ class TestFiberIOClose < Test::Unit::TestCase
6
def with_socket_pair(&block)
7
omit unless defined?(UNIXSocket)
8
9
- UNIXSocket.pair(&block)
+ UNIXSocket.pair do |r, w|
10
+ if RUBY_PLATFORM=~/mswin|mingw/
11
+ i.nonblock = true
12
+ o.nonblock = true
13
+ end
14
+
15
+ yield r, w
16
17
end
18
19
# Problematic on Windows.
- def x_test_io_close_across_fibers
20
+ def test_io_close_across_fibers
21
with_socket_pair do |i, o|
22
error = nil
23
@@ -67,7 +74,7 @@ def test_io_close_blocking_thread
67
74
68
75
69
76
70
- def x_test_io_close_blocking_fiber
77
+ def test_io_close_blocking_fiber
71
78
72
79
73
80
0 commit comments