Try a 5s request timeout (#11738)
This commit is contained in:
parent
eeb5498471
commit
221700fd24
|
@ -12,7 +12,7 @@ import (
|
|||
func getRequestTimeout(t *testing.T) time.Duration {
|
||||
rawDur := os.Getenv("VAULT_TEST_DATABASE_REQUEST_TIMEOUT")
|
||||
if rawDur == "" {
|
||||
return 2 * time.Second
|
||||
return 5 * time.Second
|
||||
}
|
||||
|
||||
dur, err := time.ParseDuration(rawDur)
|
||||
|
|
2
vendor/github.com/hashicorp/vault/sdk/database/dbplugin/v5/testing/test_helpers.go
generated
vendored
2
vendor/github.com/hashicorp/vault/sdk/database/dbplugin/v5/testing/test_helpers.go
generated
vendored
|
@ -12,7 +12,7 @@ import (
|
|||
func getRequestTimeout(t *testing.T) time.Duration {
|
||||
rawDur := os.Getenv("VAULT_TEST_DATABASE_REQUEST_TIMEOUT")
|
||||
if rawDur == "" {
|
||||
return 2 * time.Second
|
||||
return 5 * time.Second
|
||||
}
|
||||
|
||||
dur, err := time.ParseDuration(rawDur)
|
||||
|
|
Loading…
Reference in New Issue