Permalink
Browse files

test fail on machine with more than one IP

  • Loading branch information...
1 parent fb40724 commit 8d33d334ab722b92487b4a35e4aac96400c86032 Gianluca Padovani committed Jun 21, 2012
Showing with 6 additions and 6 deletions.
  1. +5 −5 test/test_rack_server.rb
  2. +1 −1 test/test_ws.rb
View
@@ -66,7 +66,7 @@ def test_lint
@server.run
- hit(['http://localhost:9998/test'])
+ hit(['http://127.0.0.1:9998/test'])
stop
@@ -83,7 +83,7 @@ def test_large_post_body
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 @@ def test_path_info
@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 @@ def test_after_reply
@server.run
- hit(['http://localhost:9998/test'])
+ hit(['http://127.0.0.1:9998/test'])
stop
@@ -131,7 +131,7 @@ def test_common_logger
@server.run
- hit(['http://localhost:9998/test'])
+ hit(['http://127.0.0.1:9998/test'])
stop
View
@@ -37,7 +37,7 @@ def teardown
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

0 comments on commit 8d33d33

Please sign in to comment.