about summary refs log tree commit homepage
path: root/t/large-file-response.ru
diff options
context:
space:
mode:
Diffstat (limited to 't/large-file-response.ru')
-rw-r--r--t/large-file-response.ru1
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 ] ]
   }