Commit 50a2183
committed
chore: adopt run_uvicorn_in_thread from MAX-157, drop wait_for_server
Rebased onto MAX-157 (#2267) which landed run_uvicorn_in_thread with
two improvements over the helper this branch had:
- Pre-binds socket + listen() before thread start: port is known
immediately, no polling loop, kernel queues early connections
- interface="asgi3": skips uvicorn's asyncio.iscoroutinefunction
autodetect, which Python 3.14 deprecates (cleaner than
catch_warnings)
Kept this branch's gc.collect() + ResourceWarning suppression in the
finally — MAX-157's single WS smoke test didn't need it, but the SSE
abrupt-disconnect test patterns here do.
Also removed wait_for_server — MAX-155 (#2277) converted its last
caller (test_integration.py) to in-memory transport.1 parent a307bd7 commit 50a2183
1 file changed
+0
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
0 commit comments