Don't override MaxWait, its default is good for CI (#9478)

This commit is contained in:
ncabatoff
2020-07-14 14:21:37 -04:00
committed by GitHub
parent 86c5d39c31
commit c68ab7bfaa

View File

@@ -19,8 +19,8 @@ import (
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/helper/testhelpers/docker"
"github.com/hashicorp/vault/sdk/logical"
logicaltest "github.com/hashicorp/vault/helper/testhelpers/logical"
"github.com/hashicorp/vault/sdk/logical"
"github.com/hashicorp/vault/vault"
"github.com/mitchellh/mapstructure"
"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"))
// exponential backoff-retry
pool.MaxWait = 10 * time.Second
if err = pool.Retry(func() error {
// Install util-linux for non-busybox flock that supports timeout option
return testSSH(t, "vaultssh", sshAddress, ssh.PublicKeys(signer), fmt.Sprintf(`