mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
Try a 5s request timeout (#11738)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user