diff options
Diffstat (limited to 't')
-rw-r--r-- | t/rack-fiber_pool/app.ru | 7 | ||||
-rw-r--r-- | t/test_isolate.rb | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/t/rack-fiber_pool/app.ru b/t/rack-fiber_pool/app.ru index a4777ca..e4f60a4 100644 --- a/t/rack-fiber_pool/app.ru +++ b/t/rack-fiber_pool/app.ru @@ -2,4 +2,9 @@ require 'rack/fiber_pool' use Rack::FiberPool use Rack::ContentLength use Rack::ContentType, 'text/plain' -run lambda { |env| [ 200, {}, [ "#{Fiber.current}\n" ] ] } +run lambda { |env| + f = Fiber.current + EM.add_timer(3) { f.resume } + Fiber.yield + [ 200, {}, [ "#{f}\n" ] ] +} diff --git a/t/test_isolate.rb b/t/test_isolate.rb index 0ab80f9..9b0c026 100644 --- a/t/test_isolate.rb +++ b/t/test_isolate.rb @@ -31,7 +31,7 @@ Isolate.now!(opts) do if defined?(::Fiber) && engine == "ruby" gem 'revactor', '0.1.5' - gem 'rack-fiber_pool', '0.9.0' + gem 'rack-fiber_pool', '0.9.1' end end |