1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

test fail on machine with more than one IP

This commit is contained in:
Gianluca Padovani 2012-06-21 18:02:29 +02:00
parent fb40724448
commit 8d33d334ab
2 changed files with 6 additions and 6 deletions

View file

@ -66,7 +66,7 @@ class TestRackServer < Test::Unit::TestCase
@server.run
hit(['http://localhost:9998/test'])
hit(['http://127.0.0.1:9998/test'])
stop
@ -83,7 +83,7 @@ class TestRackServer < Test::Unit::TestCase
big = "x" * (1024 * 16)
Net::HTTP.post_form URI.parse('http://localhost:9998/test'),
Net::HTTP.post_form URI.parse('http://127.0.0.1:9998/test'),
{ "big" => big }
stop
@ -98,7 +98,7 @@ class TestRackServer < Test::Unit::TestCase
@server.app = lambda { |env| input = env; @simple.call(env) }
@server.run
hit(['http://localhost:9998/test/a/b/c'])
hit(['http://127.0.0.1:9998/test/a/b/c'])
stop
@ -115,7 +115,7 @@ class TestRackServer < Test::Unit::TestCase
@server.run
hit(['http://localhost:9998/test'])
hit(['http://127.0.0.1:9998/test'])
stop
@ -131,7 +131,7 @@ class TestRackServer < Test::Unit::TestCase
@server.run
hit(['http://localhost:9998/test'])
hit(['http://127.0.0.1:9998/test'])
stop

View file

@ -37,7 +37,7 @@ class WebServerTest < Test::Unit::TestCase
end
def test_simple_server
hit(['http://localhost:9998/test'])
hit(['http://127.0.0.1:9998/test'])
assert @tester.ran_test, "Handler didn't really run"
end