Skip to content

Commit

Permalink
Set SSH timeout to 5 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
Xuewei Zhang committed Sep 19, 2019
1 parent 9828ab7 commit ec4b615
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 ec4b615

Please sign in to comment.