diff --git a/tests/test_issues_pylib.py b/tests/test_issues_pylib.py
index 739726da90edb609b647a75cb72871798a679c4a..56fb6ad79ce598013b48635064c71f9f2c686fb3 100644
--- a/tests/test_issues_pylib.py
+++ b/tests/test_issues_pylib.py
@@ -207,10 +207,13 @@ def test_gitlab_com_127():
     See https://gitlab.com/linkahead/linkahead-pylib/-/issues/127 and
     https://gitlab.indiscale.com/caosdb/customers/f-fit/management/-/issues/93
     """
-    # Setup paths
+    # Setup paths and save previous timeout
     base_dir = Path(__file__).parent.parent
     temp_pylinkahead_path = base_dir/'.pyla-temp-test.ini'
     temp_pylinkahead_path.unlink(True)
+    prev_timeout = None
+    if db.get_config().has_option('Connection', 'timeout'):
+        prev_timeout = db.get_config().get('Connection', 'timeout')
 
     # Parse various timeout strings and check successful connect
     valid_timeout_strings = ["timeout = None", "timeout=null",
@@ -231,4 +234,6 @@ def test_gitlab_com_127():
 
     # Reset configuration
     db.get_config().remove_option('Connection', 'timeout')
+    if prev_timeout is not None:
+        db.get_config().set('Connection', 'timeout', prev_timeout)
     db.configure_connection()