From 5ab51271b0aaab990accbd00213e37c4cb05d35d Mon Sep 17 00:00:00 2001 From: Felix Schurk <75752337+felixschurk@users.noreply.github.com> Date: Sat, 29 Jun 2024 00:11:53 +0200 Subject: [PATCH] increase timout to 10s and run on ubuntu-latest (#3523) As identified in #3512 it seams as the problem was the internal timeout. Closes #3507. --- .github/workflows/tests.yaml | 2 +- test/basetest/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 72a871e2d..85e36b216 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: coverage: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Install apt packages run: sudo apt-get install -y build-essential cmake git uuid-dev faketime locales python3 curl gcovr ninja-build diff --git a/test/basetest/utils.py b/test/basetest/utils.py index 65859a464..908ea1a0a 100644 --- a/test/basetest/utils.py +++ b/test/basetest/utils.py @@ -66,13 +66,13 @@ def binary_location(cmd, USE_PATH=False): return os.path.join(BIN_PREFIX, cmd) -def wait_condition(cond, timeout=1, sleeptime=.01): +def wait_condition(cond, timeout=10, sleeptime=.01): """Wait for condition to return anything other than None """ # NOTE Increasing sleeptime can dramatically increase testsuite runtime # It also reduces CPU load significantly if timeout is None: - timeout = 1 + timeout = 10 if timeout < sleeptime: print("Warning, timeout cannot be smaller than", sleeptime)