about summary refs log tree commit homepage
path: root/test/benchmark/big_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/benchmark/big_request.rb')
-rw-r--r--test/benchmark/big_request.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/benchmark/big_request.rb b/test/benchmark/big_request.rb
index ee42d41..a250c62 100644
--- a/test/benchmark/big_request.rb
+++ b/test/benchmark/big_request.rb
@@ -26,6 +26,11 @@ big.fsync
 
 include Unicorn
 request = HttpRequest.new(Logger.new($stderr))
+unless request.respond_to?(:reset)
+  def request.reset
+    # no-op
+  end
+end
 
 Benchmark.bmbm do |x|
   x.report("big") do