From: Libor Peltan Date: Tue, 9 Dec 2025 09:01:00 +0000 (+0100) Subject: tests: less start attempts in order to speedup when unable to start X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6cbb99183fd43a7a44243b3de0a3bdab023144ee;p=thirdparty%2Fknot-dns.git tests: less start attempts in order to speedup when unable to start --- diff --git a/tests-extra/tools/dnstest/server.py b/tests-extra/tools/dnstest/server.py index b04fa7544a..5873e8d651 100644 --- a/tests-extra/tools/dnstest/server.py +++ b/tests-extra/tools/dnstest/server.py @@ -118,8 +118,8 @@ class Server(object): START_WAIT = 2 START_WAIT_VALGRIND = 5 START_WAIT_ATTEMPTS = 60 - START_MAX_ATTEMPTS = 10 # During the test, fatal. - START_INIT_ATTEMPTS = 3 # When starting a test, non-fatal. + START_MAX_ATTEMPTS = 3 # During the test, fatal. + START_INIT_ATTEMPTS = 1 # When starting a test, non-fatal. STOP_TIMEOUT = 30 COMPILE_TIMEOUT = 60 DIG_TIMEOUT = 5 diff --git a/tests-extra/tools/dnstest/test.py b/tests-extra/tools/dnstest/test.py index 414fb2886d..a0262c890f 100644 --- a/tests-extra/tools/dnstest/test.py +++ b/tests-extra/tools/dnstest/test.py @@ -29,7 +29,7 @@ def repo_file(*path): class Test(object): '''Specification of DNS test topology''' - MAX_START_TRIES = 10 + MAX_START_TRIES = 3 XDP_LOCK_FILE = "/tmp/knottest-xdp-lock" LOCAL_ADDR_COMMON = {4: "127.0.0.1", 6: "::1"} LOCAL_ADDR_MULTI = LOCAL_ADDR_COMMON