diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-14 18:36:05 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-14 18:36:05 -0700 |
commit | 93a718202947e7d742c8c25f326631de84b4e44e (patch) | |
tree | 2ab19b2e32c9cf0d417c4497446030e62b19fc4b /t/t3000.ru | |
parent | 0836409458e674d701f2be6c26aa85d441959562 (diff) | |
download | rainbows-93a718202947e7d742c8c25f326631de84b4e44e.tar.gz |
Help ensure apps get the correct Rack environment to make choices (if any) with.
Diffstat (limited to 't/t3000.ru')
-rw-r--r-- | t/t3000.ru | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -2,5 +2,9 @@ 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 } |