diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-24 20:41:15 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-24 20:42:57 -0700 |
commit | 15fe80b3bff7b0d249ee32bcbbe1dfa116d3c629 (patch) | |
tree | 8edf5313e3ef41395b406706dd807b97e6321eb9 /t/simple-http_Revactor.ru | |
parent | e77369a6bde35a4e8925d450aac85f328f87d208 (diff) | |
download | rainbows-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.ru | 10 |
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 +} |