t/t3000.ru in rainbows-0.1.1 vs t/t3000.ru in rainbows-0.2.0
- old
+ new
@@ -1,6 +1,10 @@
use Rack::ContentLength
use Rack::ContentType
run lambda { |env|
Actor.sleep 1
- [ 200, {}, [ Thread.current.inspect << "\n" ] ]
+ if env['rack.multithread'] == false && env['rainbows.model'] == :Revactor
+ [ 200, {}, [ Thread.current.inspect << "\n" ] ]
+ else
+ raise "rack.multithread is true"
+ end
}