From d313d9d7e763db6a601cd162ef24276d5d8635d3 Mon Sep 17 00:00:00 2001 From: Colin Vidal Date: Mon, 30 Mar 2026 15:37:52 +0200 Subject: [PATCH] resolver tests: set 3MB cache size The default max-cache-size on the system test being enforced to 2MB (from the -T switch). It means the main cache size is 6/8 of it (1/8 being reserved for ADB and 1/8 for the delegation database). However, the minimal cache size of the main cache is 2MB, which means that the main cache size will actually be 2MB anyway when running the system tests. This was breaking some resolver tests were failing because when the cache was shared and named reload, the previous cache size was, indeed, 2MB whereas the newly requested size only 6/8 of it (that happened before the size is bumped to the minimal value). Set the ns1 of resolver tests max cache size of 3MB, so even 6/8 of the max cache size is more than the minimum 2MB of the main cache size, which enable to keep the shared cached between views for this test between reloads. --- bin/tests/system/resolver/ns1/named.args | 1 + 1 file changed, 1 insertion(+) create mode 100644 bin/tests/system/resolver/ns1/named.args diff --git a/bin/tests/system/resolver/ns1/named.args b/bin/tests/system/resolver/ns1/named.args new file mode 100644 index 0000000000..68b17f112d --- /dev/null +++ b/bin/tests/system/resolver/ns1/named.args @@ -0,0 +1 @@ +-m record -c named.conf -d 99 -D resolver-ns1 -g -T maxcachesize=3145728