Skip to content

Commit

Permalink
localhost -> 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Oct 13, 2023
1 parent 262ab25 commit 688b8c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/simple_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ defmodule SimpleTest do
{:ok, container} = container(image: "nginx:latest", port: 80)

port = Container.mapped_port(container, 80)
{:ok, :port_is_open} = PortChecker.wait_for_port("localhost", port, 5000)
{:ok, :port_is_open} = PortChecker.wait_for_port("127.0.0.1", port, 5000)

{:ok, 200, _headers, body_ref} = :hackney.request(:get, "http://localhost:#{port}", [follow_redirect: true, max_redirect: 5, force_redirect: true])
{:ok, 200, _headers, body_ref} = :hackney.request(:get, "http://127.0.0.1:#{port}", [follow_redirect: true, max_redirect: 5, force_redirect: true])
{:ok, body} = :hackney.body(body_ref)
body_str = IO.iodata_to_binary(body)

Expand Down

0 comments on commit 688b8c8

Please sign in to comment.