about summary refs log tree commit homepage
path: root/t/simple-http_Revactor.ru
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-24 20:41:15 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-24 20:42:57 -0700
commit15fe80b3bff7b0d249ee32bcbbe1dfa116d3c629 (patch)
tree8edf5313e3ef41395b406706dd807b97e6321eb9 /t/simple-http_Revactor.ru
parente77369a6bde35a4e8925d450aac85f328f87d208 (diff)
downloadrainbows-15fe80b3bff7b0d249ee32bcbbe1dfa116d3c629.tar.gz
This will make it easier to enable and manage tests for new
concurrency models.
Diffstat (limited to 't/simple-http_Revactor.ru')
-rw-r--r--t/simple-http_Revactor.ru10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/simple-http_Revactor.ru b/t/simple-http_Revactor.ru
new file mode 100644
index 0000000..9b9c56a
--- /dev/null
+++ b/t/simple-http_Revactor.ru
@@ -0,0 +1,10 @@
+use Rack::ContentLength
+use Rack::ContentType
+run lambda { |env|
+  Actor.sleep 1
+  if env['rack.multithread'] == false && env['rainbows.model'] == :Revactor
+    [ 200, {}, [ Thread.current.inspect << "\n" ] ]
+  else
+    raise "rack.multithread is true"
+  end
+}