diff options
Diffstat (limited to 't/t2000.ru')
-rw-r--r-- | t/t2000.ru | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2,5 +2,9 @@ use Rack::ContentLength use Rack::ContentType run lambda { |env| sleep 1 - [ 200, {}, [ Thread.current.inspect << "\n" ] ] + if env['rack.multithread'] && env['rainbows.model'] == :ThreadSpawn + [ 200, {}, [ Thread.current.inspect << "\n" ] ] + else + raise "rack.multithread is not true" + end } |