Skip to content

Commit d3adfae

Browse files
committed
add a warning in network mode test about macos
1 parent 51e1595 commit d3adfae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/generic_container_test.exs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ defmodule Testcontainers.GenericContainerTest do
1313
config = %Testcontainers.Container{image: "redis:latest", network_mode: "host"}
1414
assert {:ok, container} = Testcontainers.start_container(config)
1515
Process.sleep(5000)
16+
with {:unix, :darwin} <- :os.type() do
17+
IO.puts("Testing network_mode=host doesn't work in macos!")
18+
end
1619
assert :ok = port_open?("127.0.0.1", 6379)
1720
assert :ok = Testcontainers.stop_container(container.container_id)
1821
end

0 commit comments

Comments
 (0)