From 18db44fe89b8ba61f21b92f6efece37baa8bd6c7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 14 Jan 2011 18:49:58 +0000 Subject: tests: bump rack-fiber_pool version to 0.9.1 We always try to track the latest and greatest. We've also updated the test to actually test concurrency since rack-fiber_pool reuses recent fibers now. --- t/rack-fiber_pool/app.ru | 7 ++++++- t/test_isolate.rb | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 't') 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 -- cgit v1.2.3-24-ge0c7