]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Increase startup timeout for servers in system tests
authorArtem Boldariev <artem@boldariev.com>
Wed, 1 Dec 2021 10:50:21 +0000 (12:50 +0200)
committerArtem Boldariev <artem@boldariev.com>
Wed, 1 Dec 2021 11:11:39 +0000 (13:11 +0200)
This change is made in particular to address the issue with 'doth'
system tests where servers are unable to iniitalise in time in CI
system under high load (that happened particularly often for Debian
Buster cross32 configuration).

The right solution, is, of course, to (re)use TLS context sparingly,
while right now we create too many of them.

bin/tests/system/start.pl

index 5e146cbeea6f4cee56a86a8bb9f61b6363679286..fb2a3b1117a64169a4ab14886818280d4ffa06a1 100755 (executable)
@@ -202,12 +202,12 @@ sub start_server {
        my $child = `$command`;
        chomp($child);
 
-       # wait up to 25 seconds for the server to start and to write the
+       # wait up to 40 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 > 250) {
+               if (++$tries > 400) {
                        print "I:$test:Couldn't start server $command (pid=$child)\n";
                        print "I:$test:failed\n";
                        kill "ABRT", $child if ("$child" ne "");