Skip to content

Commit

Permalink
Bump timeout due to potential backoff retry delay (#5663)
Browse files Browse the repository at this point in the history
  • Loading branch information
calvn authored Nov 2, 2018
1 parent 5dc74f4 commit 16bb0b3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions command/agent/approle_end_to_end_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 16bb0b3

Please sign in to comment.