This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| github.com/onsi/gomega | require | minor | v1.21.1
-> v1.24.1
|
Release Notes
onsi/gomega
Compare Source
Compare Source
1.24.0
Features
Introducting gcustom - a convenient mechanism for building custom matchers.
This is an RC release for gcustom
. The external API may be tweaked in response to feedback however it is expected to remain mostly stable.
Maintenance
- Update BeComparableTo documentation [
756eaa0
]
Compare Source
1.23.0
Features
-
Custom formatting on a per-type basis can be provided using format.RegisterCustomFormatter()
-- see the docs here
-
Substantial improvement have been made to StopTrying()
:
- Users can now use
StopTrying().Wrap(err)
to wrap errors and StopTrying().Attach(description, object)
to attach arbitrary objects to the StopTrying()
error
StopTrying()
is now always interpreted as a failure. If you are an early adopter of StopTrying()
you may need to change your code as the prior version would match against the returned value even if StopTrying()
was returned. Going forward the StopTrying()
api should remain stable.
StopTrying()
and StopTrying().Now()
can both be used in matchers - not just polled functions.
-
TryAgainAfter(duration)
is used like StopTrying()
but instructs Eventually
and Consistently
that the poll should be tried again after the specified duration. This allows you to dynamically adjust the polling duration.
-
ctx
can now be passed-in as the first argument to Eventually
and Consistently
.
Maintenance
Compare Source
1.22.1
Fixes
- When passed a context and no explicit timeout, Eventually will only timeout when the context is cancelled [
e5105cf
]
- Allow StopTrying() to be wrapped [
bf3cba9
]
Maintenance
Compare Source
1.22.0
Features
Several improvements have been made to Eventually
and Consistently
in this and the most recent releases:
- Eventually and Consistently can take a context.Context [
65c01bc
]
This enables integration with Ginkgo 2.3.0's interruptible nodes and node timeouts.
- Eventually and Consistently that are passed a SpecContext can provide reports when an interrupt occurs [
0d063c9
]
- Eventually/Consistently will forward an attached context to functions that ask for one [
e2091c5
]
- Eventually/Consistently supports passing arguments to functions via WithArguments() [
a2dc7c3
]
- Eventually and Consistently can now be stopped early with StopTrying(message) and StopTrying(message).Now() [
52976bb
]
These improvements are all documented in Gomega's docs
Configuration
π
Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Enabled.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.