diff --git a/tests/test_issues_pylib.py b/tests/test_issues_pylib.py
index 76641e98c265444145e0e8fd9ed328fe1d79dfdc..739726da90edb609b647a75cb72871798a679c4a 100644
--- a/tests/test_issues_pylib.py
+++ b/tests/test_issues_pylib.py
@@ -207,20 +207,10 @@ 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
     """
-    # Find test profile config
-    test_profile_path = Path(__file__).parent.parent/'test_profile'
-    pylinkahead_paths = list(test_profile_path.rglob('.pylinkahead.ini'))
-    if len(pylinkahead_paths) != 1:
-        pytest.fail("Could not find correct config path")
-    pylinkahead_path = pylinkahead_paths[0]
-    temp_pylinkahead_path = pylinkahead_paths[0].parent/'.pyla-temp-test.ini'
+    # Setup paths
+    base_dir = Path(__file__).parent.parent
+    temp_pylinkahead_path = base_dir/'.pyla-temp-test.ini'
     temp_pylinkahead_path.unlink(True)
-    # Filter test profile content
-    pylinkahead_content = []
-    with open(pylinkahead_path, "r") as pylinkahead:
-        for line in pylinkahead:
-            if not 'timeout' in line:
-                pylinkahead_content.append(line)
 
     # Parse various timeout strings and check successful connect
     valid_timeout_strings = ["timeout = None", "timeout=null",
@@ -229,8 +219,7 @@ def test_gitlab_com_127():
         try:
             # Create temporary config with timeout option
             with open(temp_pylinkahead_path, "x") as temp_pylinkahead:
-                for line in pylinkahead_content:
-                    temp_pylinkahead.write(line)
+                temp_pylinkahead.write('[Connection]\n')
                 temp_pylinkahead.write(timeout_string)
             # Parse temporary config and check successful connect
             db.get_config().read(str(temp_pylinkahead_path))
@@ -242,5 +231,4 @@ def test_gitlab_com_127():
 
     # Reset configuration
     db.get_config().remove_option('Connection', 'timeout')
-    db.get_config().read(str(pylinkahead_path))
     db.configure_connection()