Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

silence logging from webrick in httpx test

Ivan Kuchin6d045d162f16
diff --git a/spec/httpx_spec.rb b/spec/httpx_spec.rb
index 7390d68eb00..428f8634fb7 100644
--- a/spec/httpx_spec.rb
+++ b/spec/httpx_spec.rb
@@ -4,7 +4,11 @@ require "httpx"
RSpec.describe "HTTPX" do
describe "persistent connections" do
it "does not hang forever when used to request HTTP 1.1 server" do
- server = WEBrick::HTTPServer.new(Port: 0)
+ server = WEBrick::HTTPServer.new(
+ Port: 0,
+ Logger: WEBrick::Log.new(StringIO.new),
+ AccessLog: []
+ )
server.mount_proc "/" do |_req, res|
res.body = "Response Body"
end