mirror of
https://github.com/containers/podman.git
synced 2025-12-04 04:09:40 +08:00
fix(deps): update module github.com/onsi/gomega to v1.35.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
12
vendor/github.com/onsi/gomega/internal/async_assertion.go
generated
vendored
12
vendor/github.com/onsi/gomega/internal/async_assertion.go
generated
vendored
@@ -335,7 +335,7 @@ func (assertion *AsyncAssertion) afterTimeout() <-chan time.Time {
|
||||
if assertion.asyncType == AsyncAssertionTypeConsistently {
|
||||
return time.After(assertion.g.DurationBundle.ConsistentlyDuration)
|
||||
} else {
|
||||
if assertion.ctx == nil {
|
||||
if assertion.ctx == nil || assertion.g.DurationBundle.EnforceDefaultTimeoutsWhenUsingContexts {
|
||||
return time.After(assertion.g.DurationBundle.EventuallyTimeout)
|
||||
} else {
|
||||
return nil
|
||||
@@ -496,7 +496,15 @@ func (assertion *AsyncAssertion) match(matcher types.GomegaMatcher, desiredMatch
|
||||
for _, err := range []error{actualErr, matcherErr} {
|
||||
if pollingSignalErr, ok := AsPollingSignalError(err); ok {
|
||||
if pollingSignalErr.IsStopTrying() {
|
||||
fail("Told to stop trying")
|
||||
if pollingSignalErr.IsSuccessful() {
|
||||
if assertion.asyncType == AsyncAssertionTypeEventually {
|
||||
fail("Told to stop trying (and ignoring call to Successfully(), as it is only relevant with Consistently)")
|
||||
} else {
|
||||
return true // early escape hatch for Consistently
|
||||
}
|
||||
} else {
|
||||
fail("Told to stop trying")
|
||||
}
|
||||
return false
|
||||
}
|
||||
if pollingSignalErr.IsTryAgainAfter() {
|
||||
|
||||
Reference in New Issue
Block a user