Merge pull request #352 from xueweiz/test

Set SSH timeout to 5 minutes
This commit is contained in:
Kubernetes Prow Robot
2019-09-19 12:30:25 -07:00
committed by GitHub
+2 -1
View File
@@ -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)
}