The check "unix socket message counts" sometimes fails with "dnstap
output file smaller than expected". This only happens on freebsd13 and
can't be reproduced easily. There was an attempt to decrease the
required file size in the past, but apparently, the issue can still
occur.
]
+@isctest.mark.flaky(max_runs=2, rerun_filter=isctest.mark.is_host_freebsd_13)
def test_dnstap(run_tests_sh):
run_tests_sh()
# information regarding copyright ownership.
import os
+import platform
import shutil
import subprocess
return True
+def is_host_freebsd_13(*_):
+ return platform.system() == "FreeBSD" and platform.release().startswith("13")
+
+
def with_algorithm(name: str):
key = f"{name}_SUPPORTED"
assert key in os.environ, f"{key} env variable undefined"
# pylint: disable=unused-variable
-import platform
import socket
import time
raise EOFError from e
-def is_host_freebsd_13(*_):
- return platform.system() == "FreeBSD" and platform.release().startswith("13")
-
-
-@isctest.mark.flaky(max_runs=2, rerun_filter=is_host_freebsd_13)
+@isctest.mark.flaky(max_runs=2, rerun_filter=isctest.mark.is_host_freebsd_13)
def test_idle_timeout(named_port):
#
# The idle timeout is 5 seconds, so the third message should fail