]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
tests: less start attempts in order to speedup when unable to start 1835/head
authorLibor Peltan <libor.peltan@nic.cz>
Tue, 9 Dec 2025 09:01:00 +0000 (10:01 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Tue, 9 Dec 2025 09:55:54 +0000 (10:55 +0100)
tests-extra/tools/dnstest/server.py
tests-extra/tools/dnstest/test.py

index b04fa7544a4ae39aea9c5f7798b11c237d8f51ea..5873e8d6518a4d0074ab8e25494681a06de42b54 100644 (file)
@@ -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
index 414fb2886d61eb72a591d233a6cb49c262726204..a0262c890f5270f6426a1bed54c28060f72e9e0a 100644 (file)
@@ -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