mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-11 01:42:06 -04:00
Bump timeout due to potential backoff retry delay (#5663)
This commit is contained in:
parent
5dc74f4af5
commit
16bb0b33cb
1 changed files with 8 additions and 3 deletions
|
|
@ -22,8 +22,13 @@ import (
|
|||
)
|
||||
|
||||
func TestAppRoleEndToEnd(t *testing.T) {
|
||||
testAppRoleEndToEnd(t, false)
|
||||
testAppRoleEndToEnd(t, true)
|
||||
t.Run("preserve_secret_id_file", func(t *testing.T) {
|
||||
testAppRoleEndToEnd(t, false)
|
||||
})
|
||||
|
||||
t.Run("remove_secret_id_file", func(t *testing.T) {
|
||||
testAppRoleEndToEnd(t, true)
|
||||
})
|
||||
}
|
||||
|
||||
func testAppRoleEndToEnd(t *testing.T, removeSecretIDFile bool) {
|
||||
|
|
@ -207,7 +212,7 @@ func testAppRoleEndToEnd(t *testing.T, removeSecretIDFile bool) {
|
|||
}
|
||||
|
||||
checkToken := func() string {
|
||||
timeout := time.Now().Add(5 * time.Second)
|
||||
timeout := time.Now().Add(10 * time.Second)
|
||||
for {
|
||||
if time.Now().After(timeout) {
|
||||
t.Fatal("did not find a written token after timeout")
|
||||
|
|
|
|||
Loading…
Reference in a new issue