mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02:00
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:
parent
6b2ef10ab2
commit
063e7247b9
3 changed files with 50 additions and 20 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue