From c3cc8aa429e2d4b5dd3e4ebcf6ce2611fc237f96 Mon Sep 17 00:00:00 2001 From: Michal Nowak Date: Tue, 15 Aug 2023 17:23:30 +0200 Subject: [PATCH] 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) --- bin/tests/system/timeouts/tests_tcp_timeouts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/tests/system/timeouts/tests_tcp_timeouts.py b/bin/tests/system/timeouts/tests_tcp_timeouts.py index 994a9d746c..2e2a4b47e2 100644 --- a/bin/tests/system/timeouts/tests_tcp_timeouts.py +++ b/bin/tests/system/timeouts/tests_tcp_timeouts.py @@ -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))