From 6cbb99183fd43a7a44243b3de0a3bdab023144ee Mon Sep 17 00:00:00 2001 From: Libor Peltan Date: Tue, 9 Dec 2025 10:01:00 +0100 Subject: [PATCH] tests: less start attempts in order to speedup when unable to start --- tests-extra/tools/dnstest/server.py | 4 ++-- tests-extra/tools/dnstest/test.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.3