diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-08-20 13:51:45 +1200 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-09-14 16:44:09 +1200 |
commit | d387029f39d976565c955377117103499d47ff09 (patch) | |
tree | 0a28459f929867c698d243584bc676c4ddad100c /test/fiber/test_scheduler.rb | |
parent | 905e9c8093b2bb06def609975929465be0f41a0c (diff) |
Standardised scheduler interface.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3434
Diffstat (limited to 'test/fiber/test_scheduler.rb')
-rw-r--r-- | test/fiber/test_scheduler.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/fiber/test_scheduler.rb b/test/fiber/test_scheduler.rb index 52f10846ac..5055a95999 100644 --- a/test/fiber/test_scheduler.rb +++ b/test/fiber/test_scheduler.rb @@ -10,20 +10,4 @@ class TestFiberScheduler < Test::Unit::TestCase end end end - - def test_fiber_blocking - scheduler = Scheduler.new - - thread = Thread.new do - Thread.current.scheduler = scheduler - - # Close is always a blocking operation. - IO.pipe.each(&:close) - end - - thread.join - - assert_not_empty scheduler.blocking - assert_match(/test_scheduler\.rb:\d+:in `close'/, scheduler.blocking.last) - end end |