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
|
@ -59,7 +59,7 @@ class TestPumaServer < Test::Unit::TestCase
|
||||||
[-1, {}, []]
|
[-1, {}, []]
|
||||||
end
|
end
|
||||||
|
|
||||||
@server.add_tcp_listener @host, @server.connected_port
|
@server.add_tcp_listener @host, @port
|
||||||
@server.run
|
@server.run
|
||||||
|
|
||||||
sock = TCPSocket.new @host, @server.connected_port
|
sock = TCPSocket.new @host, @server.connected_port
|
||||||
|
@ -75,7 +75,7 @@ class TestPumaServer < Test::Unit::TestCase
|
||||||
[200, {}, [giant]]
|
[200, {}, [giant]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@server.add_tcp_listener @host, @server.connected_port
|
@server.add_tcp_listener @host, @port
|
||||||
@server.run
|
@server.run
|
||||||
|
|
||||||
sock = TCPSocket.new @host, @server.connected_port
|
sock = TCPSocket.new @host, @server.connected_port
|
||||||
|
@ -96,7 +96,7 @@ class TestPumaServer < Test::Unit::TestCase
|
||||||
[200, {}, [env['SERVER_PORT']]]
|
[200, {}, [env['SERVER_PORT']]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@server.add_tcp_listener @host, @server.connected_port
|
@server.add_tcp_listener @host, @port
|
||||||
@server.run
|
@server.run
|
||||||
|
|
||||||
req = Net::HTTP::Get.new("/")
|
req = Net::HTTP::Get.new("/")
|
||||||
|
@ -115,7 +115,7 @@ class TestPumaServer < Test::Unit::TestCase
|
||||||
[200, {}, [env['SERVER_PORT']]]
|
[200, {}, [env['SERVER_PORT']]]
|
||||||
end
|
end
|
||||||
|
|
||||||
@server.add_tcp_listener @host, @server.connected_port
|
@server.add_tcp_listener @host, @port
|
||||||
@server.run
|
@server.run
|
||||||
|
|
||||||
req = Net::HTTP::Get.new("/")
|
req = Net::HTTP::Get.new("/")
|
||||||
|
@ -159,7 +159,7 @@ class TestPumaServer < Test::Unit::TestCase
|
||||||
def test_GET_with_no_body_has_sane_chunking
|
def test_GET_with_no_body_has_sane_chunking
|
||||||
@server.app = proc { |env| [200, {}, []] }
|
@server.app = proc { |env| [200, {}, []] }
|
||||||
|
|
||||||
@server.add_tcp_listener @host, @server.connected_port
|
@server.add_tcp_listener @host, @port
|
||||||
@server.run
|
@server.run
|
||||||
|
|
||||||
sock = TCPSocket.new @host, @server.connected_port
|
sock = TCPSocket.new @host, @server.connected_port
|
||||||
|
|
Loading…
Reference in a new issue