Skip to content

Commit b854254

Browse files
committed
Omit flaky example with Windows platform
https://github.com/ruby/ruby/actions/runs/11948300522/job/33305664284?pr=12139 ``` IO#wait [events, timeout] passed changes thread status to 'sleep' when waits for WRITABLE event FAILED Expected false == "sleep" to be truthy but was false D:/a/ruby/ruby/src/spec/ruby/library/io-wait/wait_spec.rb:99:in 'block (3 levels) in <top (required)>' D:/a/ruby/ruby/src/spec/ruby/library/io-wait/wait_spec.rb:8:in '<top (required)>' ```
1 parent 6fc8607 commit b854254

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

spec/ruby/library/io-wait/wait_spec.rb

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,17 @@
9191
t.join # Thread#kill doesn't wait for the thread to end
9292
end
9393

94-
it "changes thread status to 'sleep' when waits for WRITABLE event" do
95-
IOSpec.exhaust_write_buffer(@w)
96-
97-
t = Thread.new { @w.wait(IO::WRITABLE, 10) }
98-
sleep 1
99-
t.status.should == 'sleep'
100-
t.kill
101-
t.join # Thread#kill doesn't wait for the thread to end
94+
# https://github.com/ruby/ruby/actions/runs/11948300522/job/33305664284?pr=12139
95+
platform_is_not :windows do
96+
it "changes thread status to 'sleep' when waits for WRITABLE event" do
97+
IOSpec.exhaust_write_buffer(@w)
98+
99+
t = Thread.new { @w.wait(IO::WRITABLE, 10) }
100+
sleep 1
101+
t.status.should == 'sleep'
102+
t.kill
103+
t.join # Thread#kill doesn't wait for the thread to end
104+
end
102105
end
103106

104107
it "can be interrupted when waiting for READABLE event" do

0 commit comments

Comments
 (0)