aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-09 16:41:35 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-09 16:41:39 +0200
commit46d3ab9f58d586fd1024f5837fcfd05a9d090e12 (patch)
tree01903cea901aebdb8cf234e87b7f76d9fa5407d2
parenttest: don't wait for hanging processes (diff)
downloadcimple-46d3ab9f58d586fd1024f5837fcfd05a9d090e12.tar.gz
cimple-46d3ab9f58d586fd1024f5837fcfd05a9d090e12.zip
test: increase timeouts
All the new added tests require more time.
Diffstat (limited to '')
-rw-r--r--test/CMakeLists.txt2
-rw-r--r--test/py/lib/process.py2
-rw-r--r--test/py/test_repo.py2
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))