Current section

Files

Jump to
testcontainers lib wait_strategy protocols wait_strategy.ex
Raw

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 Testcontainers.WaitStrategy do
@moduledoc """
Defines the protocol/interface for the wait strategies in `Testcontainers`
"""
alias Testcontainers.Container
@spec wait_until_container_is_ready(t(), Container.t(), Tesla.Env.client()) ::
:ok | {:error, atom()}
def wait_until_container_is_ready(wait_strategy, container, conn)
end