Bump timeout due to potential backoff retry delay (#5663)

This commit is contained in:
Calvin Leung Huang 2018-11-02 13:22:15 -07:00 committed by GitHub
parent 5dc74f4af5
commit 16bb0b33cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")