Skip to content

Commit

Permalink
Try fixing multiprocess test
Browse files Browse the repository at this point in the history
  • Loading branch information
roekatz committed Apr 24, 2024
1 parent 4c83f56 commit efe3bb9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/multiprocess_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Publishing-Client -> PubSubServer -> Subscribing->Client
"""

import os
import sys
import pytest
Expand Down Expand Up @@ -35,11 +36,9 @@

def setup_server():
app = FastAPI()
router = APIRouter()
# PubSub websocket endpoint
endpoint = PubSubEndpoint()
endpoint.register_route(router, path="/pubsub")
app.include_router(router)
endpoint.register_route(app, path="/pubsub")
uvicorn.run(app, port=PORT)


Expand Down

0 comments on commit efe3bb9

Please sign in to comment.