Skip to content

Commit a60d10d

Browse files
committed
test/cases: increase api.sh gcp ssh connection timeout
1 parent 0273908 commit a60d10d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/cases/api/gcp.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ function verify() {
183183
_instanceWaitSSH "$HOST"
184184

185185
# Verify image
186-
_ssh="$GCP_CMD compute ssh --strict-host-key-checking=no --ssh-key-file=$GCP_SSH_KEY --zone=$GCP_ZONE $SSH_USER@$GCP_INSTANCE_NAME --"
186+
# Increase the timeout for ssh connection
187+
SSH_FLAG='--ssh-flag=-o --ssh-flag=ConnectTimeout=600'
188+
_ssh="$GCP_CMD compute ssh --strict-host-key-checking=no --ssh-key-file=$GCP_SSH_KEY --zone=$GCP_ZONE ${SSH_FLAG} $SSH_USER@$GCP_INSTANCE_NAME --"
187189

188190
# TODO: remove this once el10 / c10s image moves to oslogin
189191
# On el10 / c10s, we need to ssh directly, because there is no "oslogin" feature

0 commit comments

Comments
 (0)