Skip to content

Commit

Permalink
add a warning in network mode test about macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Jul 3, 2024
1 parent 51e1595 commit d3adfae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/generic_container_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3adfae

Please sign in to comment.