]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use timeout for rndc status in shutdown test
authorTom Krizek <tkrizek@isc.org>
Mon, 26 Jun 2023 13:19:35 +0000 (15:19 +0200)
committerTom Krizek <tkrizek@isc.org>
Tue, 4 Jul 2023 10:58:16 +0000 (12:58 +0200)
Pass 5 second timeout to the rndc status command(s) to avoid hitting the
hard 10 second timeout from subprocess.call, which would result in an
unwanted exception that would only mask the real issue: if the rndc
status times out in this test, it is likely due to the server not
stopping as it should.

bin/tests/system/shutdown/tests_shutdown.py

index 108c44cbb9507e87f36a51bdee5245b9b42a631d..fffc2d19069ff3afe91311c0252ff76566d6ad3e 100755 (executable)
@@ -105,7 +105,7 @@ def do_work(named_proc, resolver, rndc_cmd, kill_method, n_workers, n_queries):
             else:
                 # We attempt to send couple rndc commands while named is
                 # being shutdown
-                futures[executor.submit(launch_rndc, ["status"])] = "status"
+                futures[executor.submit(launch_rndc, ["-t", "5", "status"])] = "status"
 
         ret_code = -1
         for future in as_completed(futures):