testcontainers-go
testcontainers-go copied to clipboard
[Enhancement]: Support waiting for codes (Exit and HTTP) using integers besides the existing code matchers
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.