Skip to content

Commit f479f78

Browse files
committed
Try increasing global test timeout
1 parent d9c1163 commit f479f78

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/reactpy/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def boolean(value: str | bool | int) -> bool:
7777

7878
REACTPY_TESTS_DEFAULT_TIMEOUT = Option(
7979
"REACTPY_TESTS_DEFAULT_TIMEOUT",
80-
10.0,
80+
15.0,
8181
mutable=False,
8282
validator=float,
8383
)

tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from reactpy.config import (
77
REACTPY_ASYNC_RENDERING,
88
REACTPY_DEBUG,
9+
REACTPY_TESTS_DEFAULT_TIMEOUT,
910
)
1011
from reactpy.testing import (
1112
BackendFixture,
@@ -45,7 +46,8 @@ async def browser(pytestconfig: pytest.Config):
4546

4647
async with async_playwright() as pw:
4748
async with await pw.chromium.launch(
48-
headless=not _playwright_visible(pytestconfig)
49+
headless=not _playwright_visible(pytestconfig),
50+
timeout=REACTPY_TESTS_DEFAULT_TIMEOUT.current * 1000,
4951
) as browser:
5052
yield browser
5153

0 commit comments

Comments
 (0)