From: Arаm Sаrgsyаn Date: Wed, 3 Dec 2025 10:16:08 +0000 (+0000) Subject: fix: test: Fix an issue with unreachable cache's unit test X-Git-Tag: v9.21.16~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93fa62c3e0b95d7a9d68d974ed5dd54b84fbd49a;p=thirdparty%2Fbind9.git fix: test: Fix an issue with unreachable cache's unit test The isc_stdtime_now() function used by dns_unreachcache_find() to check if the entry needs to be expired has a one-second resolution, and the test sleeps for 1 second and then for the amount of the expiration interval, which in a worst-case scenario can cause the test to fail, because the entry was expected to be expired but it wasn't. Sleep for 2 seconds instead of 1 to avoid the timing resolution issue. Closes #5601 Merge branch '5601-unreachable-cache-expire-test-fix' into 'main' See merge request isc-projects/bind9!11224 --- 93fa62c3e0b95d7a9d68d974ed5dd54b84fbd49a