about summary refs log tree commit homepage
path: root/test/test_reopen_logs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_reopen_logs.rb')
-rw-r--r--test/test_reopen_logs.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_reopen_logs.rb b/test/test_reopen_logs.rb
index 2eb3e0d..2ad1306 100644
--- a/test/test_reopen_logs.rb
+++ b/test/test_reopen_logs.rb
@@ -2,7 +2,11 @@
 # License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt)
 # frozen_string_literal: true
 require_relative 'server_helper'
-require 'rack/commonlogger'
+require 'rack'
+# trigger autoload, since rack 1.x => 2.x renames:
+# 'rack/commonlogger' => 'rack/common_logger'
+# so we can't require directly
+Rack::CommonLogger.class
 
 class TestReopenLogs < Testcase
   ENV["N"].to_i > 1 and parallelize_me!