From d3adfae439810c8d9bd3a1733c081f42586f99a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarl=20Andr=C3=A9=20H=C3=BCbenthal?= Date: Wed, 3 Jul 2024 07:10:11 +0200 Subject: [PATCH] add a warning in network mode test about macos --- test/generic_container_test.exs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/generic_container_test.exs b/test/generic_container_test.exs index 98b1e9c..748b0d4 100644 --- a/test/generic_container_test.exs +++ b/test/generic_container_test.exs @@ -13,6 +13,9 @@ defmodule Testcontainers.GenericContainerTest do config = %Testcontainers.Container{image: "redis:latest", network_mode: "host"} assert {:ok, container} = Testcontainers.start_container(config) Process.sleep(5000) + with {:unix, :darwin} <- :os.type() do + IO.puts("Testing network_mode=host doesn't work in macos!") + end assert :ok = port_open?("127.0.0.1", 6379) assert :ok = Testcontainers.stop_container(container.container_id) end