Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1a4571d

Browse files
committedJan 30, 2025·
Fix test issues
1 parent dc479c1 commit 1a4571d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎src/reactpy/testing/backend.py

+3
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ async def __aenter__(self) -> BackendFixture:
111111
self._records = self._exit_stack.enter_context(capture_reactpy_logs())
112112
Thread(target=self.webserver.run, daemon=True).start()
113113

114+
# Wait for the server to start
115+
await asyncio.sleep(1)
116+
114117
return self
115118

116119
async def __aexit__(

‎tests/tooling/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS", "False")
77
DEFAULT_TYPE_DELAY = (
8-
250 if GITHUB_ACTIONS.lower() in {"y", "yes", "t", "true", "on", "1"} else 25
8+
250 if GITHUB_ACTIONS.lower() in {"y", "yes", "t", "true", "on", "1"} else 50
99
)
1010

1111

0 commit comments

Comments
 (0)
Please sign in to comment.