mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-13 07:56:57 +02:00
Merge pull request #93 from marineam/timeout
fix(test_ami): Bump socket startup timeout to 90 seconds.
This commit is contained in:
commit
5bb8e6a789
@ -103,7 +103,7 @@ declare -a ips=($($ec2_cmd | grep INSTANCE | cut -f4))
|
||||
# sleep until all the sockets we need come up
|
||||
for host in ${ips[@]}; do
|
||||
for port in 22 4001 7001; do
|
||||
timeout 30 perl -MIO::Socket::INET -e "
|
||||
timeout 90 perl -MIO::Socket::INET -e "
|
||||
until(new IO::Socket::INET('$host:$port')){sleep 1}"
|
||||
done
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user