]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Increase server start timeout for system tests
authorArtem Boldariev <artem@boldariev.com>
Wed, 25 May 2022 11:49:32 +0000 (14:49 +0300)
committerMichal Nowak <mnowak@isc.org>
Tue, 28 Feb 2023 13:26:13 +0000 (14:26 +0100)
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 705f0d1ed13dfee180068d1e276af046eadbb3c3)

bin/tests/system/start.pl

index b3f4dcee8bf3a87261aa5b34fce6285e4158caff..2a2d7809f7d059e972d74af958a1916aeb01def1 100755 (executable)
@@ -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 "");