Increase server start timeout for system tests

This commit increases server start timeout from 60 to 90 seconds in
order to avoid system test failures on some platforms due to inability
to initialise TLS contexts in time.

(cherry picked from commit 705f0d1ed1)
This commit is contained in:
Artem Boldariev 2022-05-25 14:49:32 +03:00 committed by Michal Nowak
parent 5b1fbe0c1f
commit c392b57e50
No known key found for this signature in database
GPG key ID: 24A3E8463AEE5E56

View file

@ -205,12 +205,12 @@ sub start_server {
my $child = `$command`;
chomp($child);
# wait up to 60 seconds for the server to start and to write the
# wait up to 90 seconds for the server to start and to write the
# pid file otherwise kill this server and any others that have
# already been started
my $tries = 0;
while (!-s $pid_file) {
if (++$tries > 600) {
if (++$tries > 900) {
print "I:$test:Couldn't start server $command (pid=$child)\n";
print "I:$test:failed\n";
kill "ABRT", $child if ("$child" ne "");