diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-05-27 15:06:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 15:06:07 +0200 |
commit | cd1f99d063cf8bb4efdb22d2f56f1aef73ff4ba0 (patch) | |
tree | b5ad078521c36b3a155b2ced9ba5aa9f8566cb01 /vendor/github.com/onsi/gomega/env.go | |
parent | 542d730987a953d8dc0a70416eaa53b218e6911b (diff) | |
parent | 61167834f296a00ab97b954bd63249ab874505c5 (diff) | |
download | podman-cd1f99d063cf8bb4efdb22d2f56f1aef73ff4ba0.tar.gz podman-cd1f99d063cf8bb4efdb22d2f56f1aef73ff4ba0.tar.bz2 podman-cd1f99d063cf8bb4efdb22d2f56f1aef73ff4ba0.zip |
Merge pull request #10483 from containers/dependabot/go_modules/github.com/onsi/gomega-1.13.0
Bump github.com/onsi/gomega from 1.12.0 to 1.13.0
Diffstat (limited to 'vendor/github.com/onsi/gomega/env.go')
-rw-r--r-- | vendor/github.com/onsi/gomega/env.go | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/vendor/github.com/onsi/gomega/env.go b/vendor/github.com/onsi/gomega/env.go new file mode 100644 index 000000000..62fd885a9 --- /dev/null +++ b/vendor/github.com/onsi/gomega/env.go @@ -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, + ) +} |