From 46d3ab9f58d586fd1024f5837fcfd05a9d090e12 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 9 Jul 2023 16:41:35 +0200 Subject: test: increase timeouts All the new added tests require more time. --- test/CMakeLists.txt | 2 +- test/py/lib/process.py | 2 +- test/py/test_repo.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e68ff45..5230fd4 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -13,7 +13,7 @@ function(add_python_tests name) add_test(NAME "${name}" WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/py" COMMAND ${ARGV}) - set_tests_properties("${name}" PROPERTIES TIMEOUT 300) + set_tests_properties("${name}" PROPERTIES TIMEOUT 600) endfunction() add_python_tests(python_tests_sanity diff --git a/test/py/lib/process.py b/test/py/lib/process.py index d478c32..40fb9bc 100644 --- a/test/py/lib/process.py +++ b/test/py/lib/process.py @@ -183,7 +183,7 @@ class Process(subprocess.Popen): # so that it doesn't attempt to read from closed descriptors. super().__exit__(*args) - SHUT_DOWN_TIMEOUT_SEC = 3 + SHUT_DOWN_TIMEOUT_SEC = 10 def shut_down(self): ec = self.poll() diff --git a/test/py/test_repo.py b/test/py/test_repo.py index dfd7fc4..7599eff 100644 --- a/test/py/test_repo.py +++ b/test/py/test_repo.py @@ -16,7 +16,7 @@ class LoggingEventRunComplete(LoggingEvent): self.counter = 0 self.target = target self.re = re.compile(r'run \d+ as finished') - super().__init__(timeout=60) + super().__init__(timeout=150) def log_line_matches(self, line): return bool(self.re.search(line)) -- cgit v1.2.3