diff options
Diffstat (limited to 't/simple-http_ThreadSpawn.ru')
-rw-r--r-- | t/simple-http_ThreadSpawn.ru | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/simple-http_ThreadSpawn.ru b/t/simple-http_ThreadSpawn.ru new file mode 100644 index 0000000..aa1accb --- /dev/null +++ b/t/simple-http_ThreadSpawn.ru @@ -0,0 +1,10 @@ +use Rack::ContentLength +use Rack::ContentType +run lambda { |env| + sleep 1 + if env['rack.multithread'] && env['rainbows.model'] == :ThreadSpawn + [ 200, {}, [ Thread.current.inspect << "\n" ] ] + else + raise "rack.multithread is not true" + end +} |