Raise the TLS alert from a subclass instead of extending one connection

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sam RubyandClaude Opus 5.5 authored and Rosa Gutierrez committed 2026-10-21 21:04:16 +09:00
1 parent ce7b5d4ea0
commit 8d4a5264cf
2 files changed
+7 -5

No files matched your search

@@ -108,8 +108,8 @@ module PushServiceTestHelper
end
# Built as WebPush::PersistentRequest builds it for a delivery.
def pinned_connection(server, ip = IP)
WebPush::Connections::HTTP.new(HOST, server.port, nil).tap do |http|
def pinned_connection(server, ip = IP, http_class: WebPush::Connections::HTTP)
http_class.new(HOST, server.port, nil).tap do |http|
http.ipaddr = ip
http.use_ssl = true
end