diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-25 23:34:26 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-26 02:26:22 -0700 |
commit | fc70d2e96306d519034ddde60769d3d789f8c2c5 (patch) | |
tree | 7bd04fd1652baadde09f6ff752bccd47be7e400b /t/large-file-response.ru | |
parent | c52c26c126f5c7d3871257fa41651fc91ccfd20e (diff) | |
download | rainbows-fc70d2e96306d519034ddde60769d3d789f8c2c5.tar.gz |
Use a bigger random_blob and run GC before checking RSS
Diffstat (limited to 't/large-file-response.ru')
-rw-r--r-- | t/large-file-response.ru | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/large-file-response.ru b/t/large-file-response.ru index 90dc6c5..84163c1 100644 --- a/t/large-file-response.ru +++ b/t/large-file-response.ru @@ -4,6 +4,7 @@ use Rack::ContentType map "/rss" do run lambda { |env| # on Linux, this is in kilobytes + GC.start if GC.respond_to?(:start) ::File.read("/proc/self/status") =~ /^VmRSS:\s+(\d+)/ [ 200, {}, [ ($1.to_i * 1024).to_s ] ] } |