diff --git a/pyproject.toml b/pyproject.toml index 315870950..575f5b669 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -103,10 +103,11 @@ addopts = '--tb=native -vv --doctest-modules --doctest-glob="*.rst"' # https://iscinumpy.gitlab.io/post/bound-version-constraints/#watch-for-warnings filterwarnings = ["error", "ignore::DeprecationWarning"] # Doctest python code in docs, python code in src docstrings, test functions in tests +timeout_method = "thread" +timeout_func_only = true testpaths = "docs src tests" asyncio_mode = "auto" -timeout = 10 - +timeout = 1.5 [tool.coverage.run] patch = ["subprocess"] data_file = "/tmp/blueapi.coverage" @@ -160,6 +161,8 @@ commands = [ "pytest", "-n", "logical", + "--max-worker-restart", + "0", "tests/unit_tests", "--cov=blueapi", "--cov-report",