Skip to content

Commit db1fd1a

Browse files
flichtenheldcron2
authored andcommitted
t_client.sh: Do not wait 3 seconds for OpenVPN to come up
On most machines 1 second should be quite enough. Given that we run currently 23 tests on most t_client runs, this makes over 40 seconds difference. Not nothing. We keep the existing 30s maximum wait-time since sometimes we want to do tests with intentionally slow servers. Change-Id: Ice8c7ff4d8118a9e6465a4724207a355138360b8 Signed-off-by: Frank Lichtenheld <[email protected]> Acked-by: Gert Doering <[email protected]> Message-Id: <[email protected]> URL: https://www.mail-archive.com/[email protected]/msg32585.html Signed-off-by: Gert Doering <[email protected]>
1 parent 028846f commit db1fd1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/t_client.sh.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,13 +377,13 @@ do
377377
$RUN_SUDO "${openvpn}" $openvpn_conf >>$LOGDIR/$SUF:openvpn.log &
378378
sudopid=$!
379379

380-
# Check if OpenVPN has initialized before continuing. It will check every 3rd second up
380+
# Check if OpenVPN has initialized before continuing. It will check every second up
381381
# to $ovpn_init_check times.
382-
ovpn_init_check=10
382+
ovpn_init_check=30
383383
ovpn_init_success=0
384384
while [ $ovpn_init_check -gt 0 ];
385385
do
386-
sleep 3 # Wait for OpenVPN to initialize and have had time to write the pid file
386+
sleep 1 # Wait for OpenVPN to initialize and have had time to write the pid file
387387
grep "Initialization Sequence Completed" $LOGDIR/$SUF:openvpn.log >/dev/null
388388
if [ $? -eq 0 ]; then
389389
ovpn_init_check=0

0 commit comments

Comments
 (0)