diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-15 00:37:59 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-15 00:46:19 -0700 |
commit | cbaa604582a9f80eba3fc0c2423234f497f21726 (patch) | |
tree | 4a8436099453a90eb57e045a7308a4882dc87cab /t/t9000.ru | |
parent | 537dffa88eeb7b573aa8176270f0635085de4706 (diff) | |
download | rainbows-cbaa604582a9f80eba3fc0c2423234f497f21726.tar.gz |
Diffstat (limited to 't/t9000.ru')
-rw-r--r-- | t/t9000.ru | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t9000.ru b/t/t9000.ru new file mode 100644 index 0000000..af6b4fc --- /dev/null +++ b/t/t9000.ru @@ -0,0 +1,14 @@ +use Rack::ContentLength +use Rack::ContentType +use Rainbows::AppPool, :size => ENV['APP_POOL_SIZE'].to_i +sleep_class = ENV['SLEEP_CLASS'] +sleep_class = sleep_class ? Object.const_get(sleep_class) : Kernel +class Sleeper + def call(env) + sleep_class = ENV['SLEEP_CLASS'] + sleep_class = sleep_class ? Object.const_get(sleep_class) : Kernel + sleep_class.sleep 1 + [ 200, {}, [ "#{object_id}\n" ] ] + end +end +run Sleeper.new |