]> 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>
Thu, 17 Aug 2023 12:13:59 +0000 (14:13 +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.

bin/tests/system/timeouts/tests_tcp_timeouts.py

index 994a9d746ccea77e12cc169a499c520ffc4727d0..2e2a4b47e26c7081795a212fda900759ee7d64b2 100644 (file)
@@ -185,6 +185,7 @@ def test_long_axfr(named_port):
         assert soa is not None
 
 
+@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))