Fix flaky test.

This commit is contained in:
Samuel Williams 2025-12-24 13:09:05 +13:00
parent 01d1cbbbec
commit 2df72c0c1a
Notes: git 2025-12-24 01:30:03 +00:00
2 changed files with 1 additions and 2 deletions

View File

@ -497,7 +497,7 @@ class IOScheduler < Scheduler
fd = io.fileno
str = buffer.get_string
__io_ops__ << [:io_write, fd, str]
Fiber.blocking { buffer.write(IO.for_fd(fd), 0, offset) }
Fiber.blocking { buffer.write(io, 0, offset) }
end
end

View File

@ -287,7 +287,6 @@ class TestFiberScheduler < Test::Unit::TestCase
end
def test_io_write_on_flush
omit "skip this test because it makes CI fragile"
begin
fn = File.join(Dir.tmpdir, "ruby_test_io_write_on_flush_#{SecureRandom.hex}")
write_fd = nil