Skip to content

[Enhancement]: Support waiting for codes (Exit and HTTP) using integers besides the existing code matchers #2205

@mdelapenya

Description

@mdelapenya

Proposal

The idea is to add som esugar on top of the existing code matchers:

Instead of this (example using the wait.ForExec strategy):

WithExitCodeMatcher(func(code int) bool {
	return code == 0
})

having this:

WithExitCode(0)

It will internally call the code matcher.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueWant to contribute to testcontainers? Start from here

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions