Skip to main content

lib/wait_strategy/protocols/wait_strategy.ex

# SPDX-License-Identifier: MIT
# Original by: Marco Dallagiacoma @ 2023 in https://github.com/dallagi/excontainers
# Modified by: Jarl André Hübenthal @ 2023
defprotocol TestcontainerEx.WaitStrategy do
  @moduledoc """
  Defines the protocol/interface for the wait strategies in `TestcontainerEx`
  """
  alias TestcontainerEx.Container.Config

  @spec wait_until_container_is_ready(t(), Config.t(), Req.Request.t()) ::
          :ok | {:error, atom()}
  def wait_until_container_is_ready(wait_strategy, container, conn)
end