about summary refs log tree commit homepage
path: root/t/t3000.ru
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-14 18:36:05 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-14 18:36:05 -0700
commit93a718202947e7d742c8c25f326631de84b4e44e (patch)
tree2ab19b2e32c9cf0d417c4497446030e62b19fc4b /t/t3000.ru
parent0836409458e674d701f2be6c26aa85d441959562 (diff)
downloadrainbows-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.ru6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/t3000.ru b/t/t3000.ru
index 7053c1a..9b9c56a 100644
--- a/t/t3000.ru
+++ b/t/t3000.ru
@@ -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
 }