Procházet zdrojové kódy

Fix endless test reruns

Zed před 3 týdny
rodič
revize
989b1f5f64
2 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 2 1
      .github/workflows/run-tests.yml
  2. 1 1
      tests/pyproject.toml

+ 2 - 1
.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 .

+ 1 - 1
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"