mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-26 21:21:12 +01:00
Try a 5s request timeout (#11738)
This commit is contained in:
parent
c706ca2cc9
commit
f43802d75a
@ -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…
x
Reference in New Issue
Block a user