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]
v1.23.0
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
Bump github.com/onsi/ginkgo/v2 from 2.3.0 to 2.3.1 (#597) [afed901]
Bump nokogiri from 1.13.8 to 1.13.9 in /docs (#599) [7c691b3]
Bump github.com/google/go-cmp from 0.5.8 to 0.5.9 (#587) [ff22665]
v1.22.1
1.22.1
Fixes
When passed a context and no explicit timeout, Eventually will only timeout when the context is cancelled [e5105cf]
Bump golang.org/x/net from 0.1.0 to 0.2.0 (#603) [1ba8372]
Bump github.com/onsi/ginkgo/v2 from 2.4.0 to 2.5.0 (#602) [f9426cb]
fix label-filter in test.yml [d795db6]
stop running flakey tests and rely on external network dependencies in CI [7133290]
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]
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
Bump github.com/onsi/ginkgo/v2 from 2.3.0 to 2.3.1 (#597) [afed901]
Bump nokogiri from 1.13.8 to 1.13.9 in /docs (#599) [7c691b3]
Bump github.com/google/go-cmp from 0.5.8 to 0.5.9 (#587) [ff22665]
1.22.1
Fixes
When passed a context and no explicit timeout, Eventually will only timeout when the context is cancelled [e5105cf]
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/onsi/gomega from 1.21.1 to 1.24.1.
Release notes
Sourced from github.com/onsi/gomega's releases.
... (truncated)
Changelog
Sourced from github.com/onsi/gomega's changelog.
... (truncated)
Commits
3eef0d7
v1.24.14c7df5e
maintain backward compatibility for Eventually and Consisntetly's signatures1ba8372
Bump golang.org/x/net from 0.1.0 to 0.2.0 (#603)f9426cb
Bump github.com/onsi/ginkgo/v2 from 2.4.0 to 2.5.0 (#602)ea0ebe6
fix small typo (#601)d795db6
fix label-filter in test.yml7133290
stop running flakey tests and rely on external network dependencies in CIed1156b
v1.24.0756eaa0
Update BeComparableTo documentation6015576
finish documenting gcustomDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)