mirror of
https://github.com/containers/podman.git
synced 2025-12-11 01:11:30 +08:00
Bump github.com/onsi/gomega from 1.12.0 to 1.13.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.12.0 to 1.13.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.12.0...v1.13.0) Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
6
vendor/github.com/onsi/gomega/CHANGELOG.md
generated
vendored
6
vendor/github.com/onsi/gomega/CHANGELOG.md
generated
vendored
@@ -1,3 +1,9 @@
|
||||
## 1.13.0
|
||||
|
||||
### Features
|
||||
- gmeasure provides BETA support for benchmarking (#447) [8f2dfbf]
|
||||
- Set consistently and eventually defaults on init (#443) [12eb778]
|
||||
|
||||
## 1.12.0
|
||||
|
||||
### Features
|
||||
|
||||
40
vendor/github.com/onsi/gomega/env.go
generated
vendored
Normal file
40
vendor/github.com/onsi/gomega/env.go
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
package gomega
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/onsi/gomega/internal/defaults"
|
||||
)
|
||||
|
||||
const (
|
||||
ConsistentlyDurationEnvVarName = "GOMEGA_DEFAULT_CONSISTENTLY_DURATION"
|
||||
ConsistentlyPollingIntervalEnvVarName = "GOMEGA_DEFAULT_CONSISTENTLY_POLLING_INTERVAL"
|
||||
EventuallyTimeoutEnvVarName = "GOMEGA_DEFAULT_EVENTUALLY_TIMEOUT"
|
||||
EventuallyPollingIntervalEnvVarName = "GOMEGA_DEFAULT_EVENTUALLY_POLLING_INTERVAL"
|
||||
)
|
||||
|
||||
func init() {
|
||||
defaults.SetDurationFromEnv(
|
||||
os.Getenv,
|
||||
SetDefaultConsistentlyDuration,
|
||||
ConsistentlyDurationEnvVarName,
|
||||
)
|
||||
|
||||
defaults.SetDurationFromEnv(
|
||||
os.Getenv,
|
||||
SetDefaultConsistentlyPollingInterval,
|
||||
ConsistentlyPollingIntervalEnvVarName,
|
||||
)
|
||||
|
||||
defaults.SetDurationFromEnv(
|
||||
os.Getenv,
|
||||
SetDefaultEventuallyTimeout,
|
||||
EventuallyTimeoutEnvVarName,
|
||||
)
|
||||
|
||||
defaults.SetDurationFromEnv(
|
||||
os.Getenv,
|
||||
SetDefaultEventuallyPollingInterval,
|
||||
EventuallyPollingIntervalEnvVarName,
|
||||
)
|
||||
}
|
||||
2
vendor/github.com/onsi/gomega/gomega_dsl.go
generated
vendored
2
vendor/github.com/onsi/gomega/gomega_dsl.go
generated
vendored
@@ -24,7 +24,7 @@ import (
|
||||
"github.com/onsi/gomega/types"
|
||||
)
|
||||
|
||||
const GOMEGA_VERSION = "1.12.0"
|
||||
const GOMEGA_VERSION = "1.13.0"
|
||||
|
||||
const nilFailHandlerPanic = `You are trying to make an assertion, but Gomega's fail handler is nil.
|
||||
If you're using Ginkgo then you probably forgot to put your assertion in an It().
|
||||
|
||||
22
vendor/github.com/onsi/gomega/internal/defaults/env.go
generated
vendored
Normal file
22
vendor/github.com/onsi/gomega/internal/defaults/env.go
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
package defaults
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
func SetDurationFromEnv(getDurationFromEnv func(string) string, varSetter func(time.Duration), name string) {
|
||||
durationFromEnv := getDurationFromEnv(name)
|
||||
|
||||
if len(durationFromEnv) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
duration, err := time.ParseDuration(durationFromEnv)
|
||||
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("Expected a duration when using %s! Parse error %v", name, err))
|
||||
}
|
||||
|
||||
varSetter(duration)
|
||||
}
|
||||
Reference in New Issue
Block a user