From 989b1f5f6490a0b35a817e1374c9db7b9b82cc83 Mon Sep 17 00:00:00 2001 From: Zed Date: Thu, 13 Aug 2026 22:43:59 +0700 Subject: [PATCH] Fix endless test reruns --- .github/workflows/run-tests.yml | 3 ++- tests/pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index dcfff52..daccac9 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -62,6 +62,7 @@ jobs: needs: [build-test] name: Integration test runs-on: ubuntu-24.04 + timeout-minutes: 30 services: redis: @@ -147,4 +148,4 @@ jobs: run: | ./nitter & cd tests - poetry run pytest -n3 --reruns=5 --rs . + poetry run pytest -n3 --rs . diff --git a/tests/pyproject.toml b/tests/pyproject.toml index a0def28..4105166 100644 --- a/tests/pyproject.toml +++ b/tests/pyproject.toml @@ -8,4 +8,4 @@ python = "^3.14" seleniumbase = "4.46.5" [tool.pytest.ini_options] -addopts = "--pls=eager --reruns=5 --timeout_multiplier=5" +addopts = "--pls=eager --reruns=2 --only-rerun=timeout --only-rerun=Timeout --only-rerun=Connection --timeout_multiplier=5"