Skip to content

Commit ae2911e

Browse files
committed
clean up
1 parent 9096628 commit ae2911e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/litserve/server.py

-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ async def response_queue_to_buffer(
8282
if use_zmq:
8383
ctx = zmq.asyncio.Context()
8484
socket = ctx.socket(zmq.SUB)
85-
# TODO: Make the address configurable or select random available port
8685
socket.connect(addr)
8786
socket.setsockopt_string(zmq.SUBSCRIBE, "")
8887

tests/test_lit_server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async def test_stream(simple_stream_api, use_zmq):
7474
) as ac:
7575
# TODO: remove this sleep when we have a better way to check if the server is ready
7676
# TODO: main process can only consume when response_queue_to_buffer is ready
77-
await asyncio.sleep(1)
77+
await asyncio.sleep(4)
7878
resp1 = ac.post("/predict", json={"prompt": "Hello"}, timeout=10)
7979
resp2 = ac.post("/predict", json={"prompt": "World"}, timeout=10)
8080
resp1, resp2 = await asyncio.gather(resp1, resp2)

0 commit comments

Comments
 (0)