Skip to content

Commit ec4b615

Browse files
author
Xuewei Zhang
committed
Set SSH timeout to 5 minutes
1 parent 9828ab7 commit ec4b615

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/lib/gce/instance.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ func CreateInstance(instance Instance, imageName string, imageProject string) (I
9696
}
9797

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

0 commit comments

Comments
 (0)