Skip to content

Commit

Permalink
Update test_puma_server_ssl.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg committed Sep 8, 2020
1 parent 9c415ed commit ee41365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_puma_server_ssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class TestPumaServerSSLClient < Minitest::Test

def assert_ssl_client_error_match(error, subject=nil, &blk)
host = "localhost"
port = 0
port = UniquePort.call

app = lambda { |env| [200, {}, [env['rack.url_scheme']]] }

Expand All @@ -230,7 +230,7 @@ def assert_ssl_client_error_match(error, subject=nil, &blk)
host_addr = server.binder.ios.first.to_io.addr[2]
server.run

http = Net::HTTP.new host, server.connected_ports[0]
http = Net::HTTP.new host, port
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

Expand Down

0 comments on commit ee41365

Please sign in to comment.