We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7647ab0 commit 7e924e2Copy full SHA for 7e924e2
solara/test/pytest_plugin.py
@@ -35,7 +35,12 @@
35
36
logger = logging.getLogger("solara.pytest_plugin")
37
38
-TEST_PORT_START = int(os.environ.get("PORT", "18765")) + 100 # do not interfere with the solara integration tests
+
39
+# support for pytest-xdist
40
+worker = os.environ.get("PYTEST_XDIST_WORKER", "gw0")
41
+# +100 so we do not interfere with the solara integration tests, +1 worker id to avoid port conflicts with other workers
42
+TEST_PORT_START = int(os.environ.get("PORT", "18765")) + int(worker[2:]) + 100
43
44
TEST_HOST = solara.server.settings.main.host
45
TIMEOUT = float(os.environ.get("SOLARA_PW_TIMEOUT", "18"))
46
PYTEST_IPYWIDGETS_SOLARA_APP_WAIT_TIMEOUT = int(os.environ.get("PYTEST_IPYWIDGETS_SOLARA_APP_WAIT_TIMEOUT", "10"))
0 commit comments