chore(deps): bump github.com/onsi/gomega from 1.10.3 to 1.20.0 (#1360)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: nils måsén <nils@piksel.se>
This commit is contained in:
dependabot[bot] 2022-08-24 09:03:06 +02:00 committed by GitHub
parent 6b2ef10ab2
commit 063e7247b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 50 additions and 20 deletions

View file

@ -14,7 +14,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/onsi/gomega/types"
gt "github.com/onsi/gomega/types"
"context"
"net/http"
@ -223,7 +223,7 @@ var _ = Describe("the client", func() {
// Gomega matcher helpers
func withContainerImageName(matcher GomegaMatcher) GomegaMatcher {
func withContainerImageName(matcher gt.GomegaMatcher) gt.GomegaMatcher {
return WithTransform(containerImageName, matcher)
}
@ -231,13 +231,13 @@ func containerImageName(container Container) string {
return container.ImageName()
}
func havingRestartingState(expected bool) GomegaMatcher {
func havingRestartingState(expected bool) gt.GomegaMatcher {
return WithTransform(func(container Container) bool {
return container.containerInfo.State.Restarting
}, Equal(expected))
}
func havingRunningState(expected bool) GomegaMatcher {
func havingRunningState(expected bool) gt.GomegaMatcher {
return WithTransform(func(container Container) bool {
return container.containerInfo.State.Running
}, Equal(expected))