Skip to content

Commit

Permalink
Use explicit lo address instead of localhost, ref JuliaLang#9892
Browse files Browse the repository at this point in the history
  • Loading branch information
ihnorton committed Feb 26, 2015
1 parent 46f6cac commit 9da63eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/socket.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ for T in (ASCIIString, UTF8String, UTF16String) # test for issue #9435
end

@test_throws Base.UVError getaddrinfo(".invalid")
@test_throws Base.UVError connect("localhost", 21452)
@test_throws Base.UVError connect("127.0.0.1", 21452)

# test invalid port
@test_throws ArgumentError connect(ip"127.0.0.1",-1)
Expand All @@ -108,7 +108,7 @@ close(server)
wait(tsk)

port, server = listenany(defaultport)
@async connect("localhost",port)
@async connect("127.0.0.1",port)
s1 = accept(server)
@test_throws ErrorException accept(server,s1)
@test_throws Base.UVError listen(port)
Expand Down

0 comments on commit 9da63eb

Please sign in to comment.