]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Be more patient when stopping servers in the system tests
authorOndřej Surý <ondrej@isc.org>
Fri, 30 Sep 2022 14:01:49 +0000 (16:01 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 30 Sep 2022 15:12:44 +0000 (17:12 +0200)
When the TCP test is run on the busy server, the server might take a
while to wind the server down because it might still be processing all
that 300k invalid XFR requests.

Increate the rncd wait time to 120 seconds, the SIGTERM time to 300
seconds, and reduce the time to wait for ans servers from 1200 second
to just 120 seconds.

bin/tests/system/stop.pl

index bd4423b60b94db4ee0c7bb1917a3c7b8c70e5f99..bd5c04b419596584407ac7e81659074b9c6fbe04 100644 (file)
@@ -98,7 +98,7 @@ if ($use_rndc) {
                stop_rndc($name, $rndc_port);
        }
 
-       @ns = wait_for_servers(30, @ns);
+       @ns = wait_for_servers(120, @ns);
 }
 
 # Pass 2: SIGTERM
@@ -106,13 +106,13 @@ foreach my $name (@ns) {
        stop_signal($name, "TERM");
 }
 
-@ns = wait_for_servers(60, @ns);
+@ns = wait_for_servers(300, @ns);
 
 foreach my $name(@ans) {
        stop_signal($name, "TERM", 1);
 }
 
-@ans = wait_for_servers(1200, @ans);
+@ans = wait_for_servers(300, @ans);
 
 # Pass 3: SIGABRT
 foreach my $name (@ns) {