diff --git a/bin/tests/system/timeouts/tests_tcp_timeouts.py b/bin/tests/system/timeouts/tests_tcp_timeouts.py index cdee7a2e70..1750715ce0 100644 --- a/bin/tests/system/timeouts/tests_tcp_timeouts.py +++ b/bin/tests/system/timeouts/tests_tcp_timeouts.py @@ -13,6 +13,7 @@ # pylint: disable=unused-variable +import platform import socket import time @@ -67,6 +68,11 @@ def test_initial_timeout(named_port): 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) def test_idle_timeout(named_port): # # The idle timeout is 5 seconds, so the third message should fail