]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Mark test_send_timeout as flaky
authorMichal Nowak <mnowak@isc.org>
Tue, 15 Aug 2023 15:23:30 +0000 (17:23 +0200)
committerMichal Nowak <mnowak@isc.org>
Tue, 22 Aug 2023 06:55:36 +0000 (08:55 +0200)
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)

bin/tests/system/timeouts/tests_tcp_timeouts.py

index 0aa7c167c52fe5ea0ccd94c5906ce8863fee6736..d3ee357ea14aafc5f47adba995fb6783b2944416 100644 (file)
@@ -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))