From 40e7b0de252f038a4e049bc2e82f504b8f8264a9 Mon Sep 17 00:00:00 2001 From: Martin Date: Wed, 11 Dec 2024 10:37:50 +0100 Subject: [PATCH] test timeout to 5 min --- test_manager/__init__.py | 2 +- test_manager/profile_test_generator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test_manager/__init__.py b/test_manager/__init__.py index ae062289..1b4621b9 100644 --- a/test_manager/__init__.py +++ b/test_manager/__init__.py @@ -72,7 +72,7 @@ def generate_test(src_path, file, res_path, _unused): TEST_DICT[os.path.join(src_path, file)] = test_name with open(TEST_FILE, 'a', encoding='utf8') as test_file: - test_file.write(f'\n\n\n@pytest.mark.timeout(60)' + test_file.write(f'\n\n\n@pytest.mark.timeout(300)' f'\ndef {test_name}():' f'\n global all_reader' f'\n (b,a,c)=compare_reader_result(r\'{src_path}\',r\'{res_path}\',r\'{file}\')' diff --git a/test_manager/profile_test_generator.py b/test_manager/profile_test_generator.py index 5d84986d..bf334395 100644 --- a/test_manager/profile_test_generator.py +++ b/test_manager/profile_test_generator.py @@ -39,7 +39,7 @@ def _generate_profile_tests(src_path, file, _unused, res_path): TEST_DICT[os.path.join(src_path, file)] = test_name with open(TEST_FILE, 'a', encoding='utf8') as test_file: - test_file.write(f'\n\n\n@pytest.mark.timeout(60)' + test_file.write(f'\n\n\n@pytest.mark.timeout(300)' f'\ndef {test_name}():' f'\n global all_reader' f'\n (a, b)=compare_profile_result(r\'{src_path}\',r\'{res_path}\',r\'{file}\')'