mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Merge pull request #877 from schneems/schneems/fix-jruby-server-tests
Fix jruby server tests
This commit is contained in:
commit
15e736de68
2 changed files with 6 additions and 6 deletions
|
@ -165,7 +165,7 @@ module Puma
|
|||
@events.error "Please specify the SSL ca via 'ca='"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
ctx.ca = params['ca'] if params['ca']
|
||||
|
||||
if params['verify_mode']
|
||||
|
|
|
@ -59,7 +59,7 @@ class TestPumaServer < Test::Unit::TestCase
|
|||
[-1, {}, []]
|
||||
end
|
||||
|
||||
@server.add_tcp_listener @host, @server.connected_port
|
||||
@server.add_tcp_listener @host, @port
|
||||
@server.run
|
||||
|
||||
sock = TCPSocket.new @host, @server.connected_port
|
||||
|
@ -75,7 +75,7 @@ class TestPumaServer < Test::Unit::TestCase
|
|||
[200, {}, [giant]]
|
||||
end
|
||||
|
||||
@server.add_tcp_listener @host, @server.connected_port
|
||||
@server.add_tcp_listener @host, @port
|
||||
@server.run
|
||||
|
||||
sock = TCPSocket.new @host, @server.connected_port
|
||||
|
@ -96,7 +96,7 @@ class TestPumaServer < Test::Unit::TestCase
|
|||
[200, {}, [env['SERVER_PORT']]]
|
||||
end
|
||||
|
||||
@server.add_tcp_listener @host, @server.connected_port
|
||||
@server.add_tcp_listener @host, @port
|
||||
@server.run
|
||||
|
||||
req = Net::HTTP::Get.new("/")
|
||||
|
@ -115,7 +115,7 @@ class TestPumaServer < Test::Unit::TestCase
|
|||
[200, {}, [env['SERVER_PORT']]]
|
||||
end
|
||||
|
||||
@server.add_tcp_listener @host, @server.connected_port
|
||||
@server.add_tcp_listener @host, @port
|
||||
@server.run
|
||||
|
||||
req = Net::HTTP::Get.new("/")
|
||||
|
@ -159,7 +159,7 @@ class TestPumaServer < Test::Unit::TestCase
|
|||
def test_GET_with_no_body_has_sane_chunking
|
||||
@server.app = proc { |env| [200, {}, []] }
|
||||
|
||||
@server.add_tcp_listener @host, @server.connected_port
|
||||
@server.add_tcp_listener @host, @port
|
||||
@server.run
|
||||
|
||||
sock = TCPSocket.new @host, @server.connected_port
|
||||
|
|
Loading…
Reference in a new issue