Documentation
¶
Index ¶
- func Expect(err error, message string)
- func GetFreePort() (int, error)
- func GetNow() pgtype.Timestamp
- func StartPGContainer() (context.Context, *postgres.PostgresContainer, string, error)
- func TerminatePGContainer(ctx context.Context, pgContainer testcontainers.Container) error
- func WaitForPredicateToBeTrue(predicate func() bool) bool
- func WaitForServiceUp(port int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFreePort ¶
GetFreePort asks the kernel for a free open port that is ready to use.
func StartPGContainer ¶
func TerminatePGContainer ¶
func TerminatePGContainer(ctx context.Context, pgContainer testcontainers.Container) error
TerminatePGContainer stops a Postgres test container. It silently ignores the conflict error (HTTP 409 "removal already in progress") that arises when testcontainers' Ryuk reaper races with the explicit Terminate call as the test process winds down.
func WaitForServiceUp ¶
func WaitForServiceUp(port int)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.