From 8425d98693a2ea56ec65dddf351a497d0289bffe Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Mon, 13 Oct 2025 16:54:12 +0200 Subject: [PATCH] tests: Increase retries to avoid timeouts on slower systems Follow-up from #756 which introduced this test. Signed-off-by: Jakub Jelen --- docs/changelog-fragments/777.contrib.rst | 2 ++ tests/conftest.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 docs/changelog-fragments/777.contrib.rst diff --git a/docs/changelog-fragments/777.contrib.rst b/docs/changelog-fragments/777.contrib.rst new file mode 100644 index 000000000..21eeb5444 --- /dev/null +++ b/docs/changelog-fragments/777.contrib.rst @@ -0,0 +1,2 @@ +Increased the amount of retries in test to avoid possible timeouts +on slower systems -- by :user:`Jakuje`. diff --git a/tests/conftest.py b/tests/conftest.py index 3daa8735f..a1bfa1766 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -131,7 +131,7 @@ def ssh_session_connect_retries(sshd_addr, ssh_clientkey_path): """ Authenticate existing session object against SSHD with a private SSH key. - This sets ``open_session_retries=100`` and it returns a function + This sets ``open_session_retries=1000`` and it returns a function that takes session as parameter. :returns: Function that will connect the session. @@ -141,7 +141,7 @@ def ssh_session_connect_retries(sshd_addr, ssh_clientkey_path): ensure_ssh_session_connected, sshd_addr=sshd_addr, ssh_clientkey_path=ssh_clientkey_path, - ssh_session_retries=100, + ssh_session_retries=1000, )