mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 11:38:02 +00:00
Don't override MaxWait, its default is good for CI (#9478)
This commit is contained in:
@@ -19,8 +19,8 @@ import (
|
|||||||
|
|
||||||
"github.com/hashicorp/vault/api"
|
"github.com/hashicorp/vault/api"
|
||||||
"github.com/hashicorp/vault/helper/testhelpers/docker"
|
"github.com/hashicorp/vault/helper/testhelpers/docker"
|
||||||
"github.com/hashicorp/vault/sdk/logical"
|
|
||||||
logicaltest "github.com/hashicorp/vault/helper/testhelpers/logical"
|
logicaltest "github.com/hashicorp/vault/helper/testhelpers/logical"
|
||||||
|
"github.com/hashicorp/vault/sdk/logical"
|
||||||
"github.com/hashicorp/vault/vault"
|
"github.com/hashicorp/vault/vault"
|
||||||
"github.com/mitchellh/mapstructure"
|
"github.com/mitchellh/mapstructure"
|
||||||
"github.com/ory/dockertest"
|
"github.com/ory/dockertest"
|
||||||
@@ -149,7 +149,6 @@ func prepareTestContainer(t *testing.T, tag, caPublicKeyPEM string) (func(), str
|
|||||||
sshAddress := fmt.Sprintf("127.0.0.1:%s", resource.GetPort("2222/tcp"))
|
sshAddress := fmt.Sprintf("127.0.0.1:%s", resource.GetPort("2222/tcp"))
|
||||||
|
|
||||||
// exponential backoff-retry
|
// exponential backoff-retry
|
||||||
pool.MaxWait = 10 * time.Second
|
|
||||||
if err = pool.Retry(func() error {
|
if err = pool.Retry(func() error {
|
||||||
// Install util-linux for non-busybox flock that supports timeout option
|
// Install util-linux for non-busybox flock that supports timeout option
|
||||||
return testSSH(t, "vaultssh", sshAddress, ssh.PublicKeys(signer), fmt.Sprintf(`
|
return testSSH(t, "vaultssh", sshAddress, ssh.PublicKeys(signer), fmt.Sprintf(`
|
||||||
|
|||||||
Reference in New Issue
Block a user