build(deps): bump github.com/onsi/gomega from 1.30.0 to 1.31.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.30.0 to 1.31.0. - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/gomega/compare/v1.30.0...v1.31.0) --- updated-dependencies: - dependency-name: github.com/onsi/gomega dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
Ralf Haferkamp
parent
575af0f858
commit
fafe08e9b0
+14
@@ -1,3 +1,17 @@
|
||||
## 1.31.0
|
||||
|
||||
### Features
|
||||
- Async assertions include context cancellation cause if present [121c37f]
|
||||
|
||||
### Maintenance
|
||||
- Bump minimum go version [dee1e3c]
|
||||
- docs: fix typo in example usage "occured" -> "occurred" [49005fe]
|
||||
- Bump actions/setup-go from 4 to 5 (#714) [f1c8757]
|
||||
- Bump github/codeql-action from 2 to 3 (#715) [9836e76]
|
||||
- Bump github.com/onsi/ginkgo/v2 from 2.13.0 to 2.13.2 (#713) [54726f0]
|
||||
- Bump golang.org/x/net from 0.17.0 to 0.19.0 (#711) [df97ecc]
|
||||
- docs: fix `HaveExactElement` typo (#712) [a672c86]
|
||||
|
||||
## 1.30.0
|
||||
|
||||
### Features
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import (
|
||||
"github.com/onsi/gomega/types"
|
||||
)
|
||||
|
||||
const GOMEGA_VERSION = "1.30.0"
|
||||
const GOMEGA_VERSION = "1.31.0"
|
||||
|
||||
const nilGomegaPanic = `You are trying to make an assertion, but haven't registered Gomega's fail handler.
|
||||
If you're using Ginkgo then you probably forgot to put your assertion in an It().
|
||||
|
||||
+6
-1
@@ -553,7 +553,12 @@ func (assertion *AsyncAssertion) match(matcher types.GomegaMatcher, desiredMatch
|
||||
lock.Unlock()
|
||||
}
|
||||
case <-contextDone:
|
||||
fail("Context was cancelled")
|
||||
err := context.Cause(assertion.ctx)
|
||||
if err != nil && err != context.Canceled {
|
||||
fail(fmt.Sprintf("Context was cancelled (cause: %s)", err))
|
||||
} else {
|
||||
fail("Context was cancelled")
|
||||
}
|
||||
return false
|
||||
case <-timeout:
|
||||
if assertion.asyncType == AsyncAssertionTypeEventually {
|
||||
|
||||
+1
-1
@@ -394,7 +394,7 @@ func ConsistOf(elements ...interface{}) types.GomegaMatcher {
|
||||
}
|
||||
}
|
||||
|
||||
// HaveExactElemets succeeds if actual contains elements that precisely match the elemets passed into the matcher. The ordering of the elements does matter.
|
||||
// HaveExactElements succeeds if actual contains elements that precisely match the elemets passed into the matcher. The ordering of the elements does matter.
|
||||
// By default HaveExactElements() uses Equal() to match the elements, however custom matchers can be passed in instead. Here are some examples:
|
||||
//
|
||||
// Expect([]string{"Foo", "FooBar"}).Should(HaveExactElements("Foo", "FooBar"))
|
||||
|
||||
Reference in New Issue
Block a user