Skip to content

Commit

Permalink
snabbnfv: bump telnet timeout for selftest
Browse files Browse the repository at this point in the history
When run in a docker container for CI, the telnet timeout
was more likely to trigger and would block the test from
running. This commit approximately doubles the timeout.
  • Loading branch information
takikawa committed Nov 9, 2018
1 parent 9bbbb09 commit 987f60c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/program/snabbnfv/test_env/test_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function wait_vm_up {
local timeout_counter=0
local timeout_max=50
echo -n "Waiting for VM listening on telnet port $1 to get ready..."
while ( ! (run_telnet $1 "ping6 -c 1 0::0" | grep "1 received" \
while ( ! (run_telnet $1 "ping6 -c 1 0::0" 5 | grep "1 received" \
>/dev/null) ); do
# Time out eventually.
if [ $timeout_counter -gt $timeout_max ]; then
Expand Down

0 comments on commit 987f60c

Please sign in to comment.