diff options
author | Samuel Williams <[email protected]> | 2024-10-31 17:26:37 +1300 |
---|---|---|
committer | GitHub <[email protected]> | 2024-10-31 17:26:37 +1300 |
commit | 87fb44dff6409a19d12052cf0fc07ba80a4c45ac (patch) | |
tree | 1446cd9390356ae660c50ef7ae877bc57af8d567 /test/fiber/test_io_buffer.rb | |
parent | 550ac2f2edc07d1b63e3755233df0758a652b53f (diff) |
Introduce Fiber Scheduler `blocking_region` hook. (#11963)
Notes
Notes:
Merged-By: ioquatix <[email protected]>
Diffstat (limited to 'test/fiber/test_io_buffer.rb')
-rw-r--r-- | test/fiber/test_io_buffer.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fiber/test_io_buffer.rb b/test/fiber/test_io_buffer.rb index a08b1ce1a9..19e6c1f88e 100644 --- a/test/fiber/test_io_buffer.rb +++ b/test/fiber/test_io_buffer.rb @@ -21,7 +21,8 @@ class TestFiberIOBuffer < Test::Unit::TestCase Fiber.set_scheduler scheduler Fiber.schedule do - message = i.read(20) + # We add 1 here, to force the read to block (testing that specific code path). + message = i.read(MESSAGE.bytesize + 1) i.close end |