From 688b8c857a021c768e3df9d3f79accf8f19d516c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarl=20Andr=C3=A9=20H=C3=BCbenthal?= Date: Fri, 13 Oct 2023 10:19:20 +0200 Subject: [PATCH] localhost -> 127.0.0.1 --- test/simple_test.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/simple_test.exs b/test/simple_test.exs index 293f6d9..50e73b1 100644 --- a/test/simple_test.exs +++ b/test/simple_test.exs @@ -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)