Skip to content

Commit

Permalink
Merge pull request #352 from xueweiz/test
Browse files Browse the repository at this point in the history
Set SSH timeout to 5 minutes
  • Loading branch information
k8s-ci-robot authored Sep 19, 2019
2 parents 56f42d9 + ec4b615 commit 219b408
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/lib/gce/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ func CreateInstance(instance Instance, imageName string, imageProject string) (I
}

instanceRunning := false
for i := 0; i < 30 && !instanceRunning; i++ {
// Waiting for the instance to be SSH-able by retrying SSH with timeout of 5 min (15*20sec)
for i := 0; i < 15 && !instanceRunning; i++ {
if i > 0 {
time.Sleep(time.Second * 20)
}
Expand Down

0 comments on commit 219b408

Please sign in to comment.