about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-12-08 00:50:34 -0800
committerEric Wong <normalperson@yhbt.net>2009-12-08 00:51:38 -0800
commit067b54ff7950084fc729df04a748e02361d46dc1 (patch)
tree5e31835fe70fbb8d976960123de83784f7803fa5 /t
parentd2aba3d27fcff72b4db9d3f164247923d1ebd244 (diff)
downloadrainbows-067b54ff7950084fc729df04a748e02361d46dc1.tar.gz
There's a good chunk of tests that fail with this, still.
Worse, I haven't been able to figure out what's wrong since
it looks like it would involve looking at C++ code...
Diffstat (limited to 't')
-rw-r--r--t/simple-http_EventMachineDefer.ru11
1 files changed, 11 insertions, 0 deletions
diff --git a/t/simple-http_EventMachineDefer.ru b/t/simple-http_EventMachineDefer.ru
new file mode 100644
index 0000000..71269fa
--- /dev/null
+++ b/t/simple-http_EventMachineDefer.ru
@@ -0,0 +1,11 @@
+use Rack::ContentLength
+use Rack::ContentType
+run lambda { |env|
+  if env['rack.multithread'] == true &&
+     EM.reactor_running? &&
+     env['rainbows.model'] == :EventMachineDefer
+    [ 200, {}, [ env.inspect << "\n" ] ]
+  else
+    raise "incorrect parameters"
+  end
+}