From ca24dca8bfb424b741d9fe927312f0aec5f38e69 Mon Sep 17 00:00:00 2001
From: Jithu Murugan <j.murugan@fz-juelich.de>
Date: Tue, 25 Feb 2025 13:27:04 +0100
Subject: [PATCH] - Added a 10 minute timeout for testing if any specific
 command hangs on subprocess.run command!

---
 dedal/tests/unit_tests/utils_test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dedal/tests/unit_tests/utils_test.py b/dedal/tests/unit_tests/utils_test.py
index cd478606..6bb6eda9 100644
--- a/dedal/tests/unit_tests/utils_test.py
+++ b/dedal/tests/unit_tests/utils_test.py
@@ -104,7 +104,7 @@ def test_run_command_success(mocker):
     mock_logger = MagicMock()
     result = run_command('bash',  '-c', 'echo hello', logger=mock_logger, info_msg="Running echo")
     mock_logger.info.assert_called_with("Running echo: args: ('bash', '-c', 'echo hello')")
-    mock_subprocess.assert_called_once_with(('bash', '-c', 'echo hello'))
+    mock_subprocess.assert_called_once_with(('bash', '-c', 'echo hello'), timeout=600)
     assert result.returncode == 0
 
 
-- 
GitLab