From: Michal Nowak Date: Tue, 15 Aug 2023 15:23:30 +0000 (+0200) Subject: Mark test_send_timeout as flaky X-Git-Tag: v9.16.44~7^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=2d951a900ba1c9ae6547680e3c6b4079034ed61e;p=thirdparty%2Fbind9.git Mark test_send_timeout as flaky In some cases, BIND is not fast enough to fill the send buffer and manages to answer all queries, contrary to what the test expects. Repeat the check up to 3 times to limit this test instability. (cherry picked from commit 681b23c3985e592ff0548eee012183e0d992b99f) --- diff --git a/bin/tests/system/timeouts/tests_tcp_timeouts.py b/bin/tests/system/timeouts/tests_tcp_timeouts.py index 0aa7c167c52..d3ee357ea14 100644 --- a/bin/tests/system/timeouts/tests_tcp_timeouts.py +++ b/bin/tests/system/timeouts/tests_tcp_timeouts.py @@ -190,6 +190,7 @@ def test_long_axfr(named_port): # that use a different value for this setting (for example, FreeBSD defaults to # 32768 bytes) may need their system-level settings to be tweaked in order for # this test to pass. +@pytest_custom_markers.flaky(max_runs=3) def test_send_timeout(named_port): with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock: sock.connect(("10.53.0.1", named_port))